From ad09d1f153148231d258b9280b6f49e1a9471d33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Ho=C3=9F?= Date: Sun, 13 Apr 2014 23:28:39 +0200 Subject: [PATCH] Can't apply @Nonnull on marker annotation anymore MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .../java/com/github/sebhoss/nullanalysis/NotNullByDefault.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/github/sebhoss/nullanalysis/NotNullByDefault.java b/src/main/java/com/github/sebhoss/nullanalysis/NotNullByDefault.java index 3345de9..6a8039d 100644 --- a/src/main/java/com/github/sebhoss/nullanalysis/NotNullByDefault.java +++ b/src/main/java/com/github/sebhoss/nullanalysis/NotNullByDefault.java @@ -12,7 +12,6 @@ import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.annotation.Nonnull; import javax.annotation.meta.TypeQualifierDefault; /** @@ -27,13 +26,12 @@ import javax.annotation.meta.TypeQualifierDefault; *

*/ @Documented -@Nonnull @Inherited -@TypeQualifierDefault({ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, - ElementType.LOCAL_VARIABLE, ElementType.METHOD, ElementType.PACKAGE, ElementType.PARAMETER, ElementType.TYPE }) +@TypeQualifierDefault({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, + ElementType.LOCAL_VARIABLE, ElementType.METHOD, ElementType.PACKAGE, ElementType.PARAMETER, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) public @interface NotNullByDefault { // marker annotation -} \ No newline at end of file +} -- 2.11.4.GIT