]> source.dussan.org Git - jgit.git/commitdiff
NonNull: Switch to TYPE_USE 79/115579/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 18 Jan 2018 04:20:49 +0000 (13:20 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 18 Jan 2018 04:23:34 +0000 (13:23 +0900)
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 <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/annotations/NonNull.java

index 1cc65c9f4501075c649c63069401b8ac62d8ca42..fd5495886845155055583e0c4ed582a18de8a727 100644 (file)
 
 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
 }