public @interface MyAnnotation { int value1() default 0; String value2() default "default value"; } public @interface MyAnnotation { Class<?> clazz() default Object.class; } @Repeatable(MyAnnotations.class) public @interface MyAnnotation { } public @interface MyAnnotations { MyAnnotation[] value(); } public void method(@NonNull String str) { }


上一篇:
下一篇:
切换中文