当声明一个没有成员的annotation类型声明时,可使用以下方式:
/** * Indicates that the specification of the annotated API element * is preliminary and subject to change. */ public @interface Preliminary { }
作为上面没有成员的annotation类型声明的简写方式:
@Preliminary public class TimeTravel { ... }