From 936a3e9edbf4bc8514f509641912281066b17d35 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sun, 14 Nov 2010 12:37:03 +0100 Subject: Make @AnyAnnotation illegal to use --- src/core/lombok/Getter.java | 1 + src/core/lombok/Setter.java | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/core/lombok/Getter.java b/src/core/lombok/Getter.java index 97ce315c..c42277b1 100644 --- a/src/core/lombok/Getter.java +++ b/src/core/lombok/Getter.java @@ -73,5 +73,6 @@ public @interface Getter { */ @Deprecated @Retention(RetentionPolicy.SOURCE) + @Target({}) @interface AnyAnnotation {} } diff --git a/src/core/lombok/Setter.java b/src/core/lombok/Setter.java index 8c78bbb3..107760a7 100644 --- a/src/core/lombok/Setter.java +++ b/src/core/lombok/Setter.java @@ -74,5 +74,6 @@ public @interface Setter { */ @Deprecated @Retention(RetentionPolicy.SOURCE) + @Target({}) @interface AnyAnnotation {} } \ No newline at end of file -- cgit From 339efa00c62267f8fb6643d8883d5130c9fdd05a Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sun, 14 Nov 2010 12:37:15 +0100 Subject: Added meta-annotations --- src/core/lombok/Delegate.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/core/lombok/Delegate.java b/src/core/lombok/Delegate.java index bbfd51df..9056dada 100644 --- a/src/core/lombok/Delegate.java +++ b/src/core/lombok/Delegate.java @@ -21,6 +21,13 @@ */ package lombok; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.FIELD) +@Retention(RetentionPolicy.SOURCE) public @interface Delegate { Class[] value() default {}; } -- cgit