diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/annotations/Target.java')
-rw-r--r-- | src/main/java/ftbsc/lll/processor/annotations/Target.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/ftbsc/lll/processor/annotations/Target.java b/src/main/java/ftbsc/lll/processor/annotations/Target.java index d397705..3152d1d 100644 --- a/src/main/java/ftbsc/lll/processor/annotations/Target.java +++ b/src/main/java/ftbsc/lll/processor/annotations/Target.java @@ -15,7 +15,7 @@ import java.lang.annotation.RetentionPolicy; * @see Injector */ @Retention(RetentionPolicy.CLASS) -@Repeatable(MultipleTargets.class) +@Repeatable(Target.List.class) @java.lang.annotation.Target(ElementType.METHOD) public @interface Target { @@ -52,4 +52,17 @@ public @interface Target { * @since 0.5.2 */ boolean bridge() default false; + + /** + * Used to support {@link Target} as a {@link Repeatable} annotation. + * @since 0.6.1 + */ + @Retention(RetentionPolicy.CLASS) + @java.lang.annotation.Target(ElementType.METHOD) + @interface List { + /** + * @return the {@link Injector} annotations, as an array + */ + Target[] value(); + } } |