From: David Pursehouse Date: Thu, 18 Jan 2018 04:20:49 +0000 (+0900) Subject: NonNull: Switch to TYPE_USE X-Git-Tag: v4.11.0.201803080745-r~145 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55eba8d0f55464ca84d676828f67a6fe14b2454d;p=jgit.git NonNull: Switch to TYPE_USE Since JGit now requires Java 8, we can switch to TYPE_USE instead of explicitly specifying the target type. Change-Id: I373d47c3d92507459685789df1fad0933d5625ff Signed-off-by: David Pursehouse --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/annotations/NonNull.java b/org.eclipse.jgit/src/org/eclipse/jgit/annotations/NonNull.java index 1cc65c9f45..fd54958868 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/annotations/NonNull.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/annotations/NonNull.java @@ -43,12 +43,8 @@ package org.eclipse.jgit.annotations; -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.LOCAL_VARIABLE; -import static java.lang.annotation.ElementType.METHOD; -import static java.lang.annotation.ElementType.PARAMETER; - import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @@ -63,7 +59,7 @@ import java.lang.annotation.Target; */ @Documented @Retention(RetentionPolicy.CLASS) -@Target({ FIELD, METHOD, PARAMETER, LOCAL_VARIABLE }) +@Target(ElementType.TYPE_USE) public @interface NonNull { // marker annotation with no members }