From 55eba8d0f55464ca84d676828f67a6fe14b2454d Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 18 Jan 2018 13:20:49 +0900 Subject: [PATCH] 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 --- .../src/org/eclipse/jgit/annotations/NonNull.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 } -- 2.39.5