From: Robert Varga Date: Tue, 12 Mar 2024 17:09:11 +0000 (+0100) Subject: Remove superfluouse @NonNull X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=f81b5c4821b1413e347acb3922fde41495e47e7f;hp=9af51f652b9ebeefaaadf97114f9977475970f86;p=yangtools.git Remove superfluouse @NonNull We have @NonNullByDefault, hence we do not need an explicit @NonNull. Change-Id: I6b546d685d7ffb27577e377987fafd97ee7c3d64 Signed-off-by: Robert Varga --- diff --git a/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/TopLevelJavaGeneratedType.java b/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/TopLevelJavaGeneratedType.java index 741ede45d7..540a044c91 100644 --- a/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/TopLevelJavaGeneratedType.java +++ b/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/TopLevelJavaGeneratedType.java @@ -13,7 +13,6 @@ import java.util.Comparator; import java.util.Iterator; import java.util.Map.Entry; import java.util.stream.Stream; -import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.NonNullByDefault; import org.opendaylight.mdsal.binding.model.api.GeneratedType; import org.opendaylight.mdsal.binding.model.api.JavaTypeName; @@ -31,7 +30,7 @@ final class TopLevelJavaGeneratedType extends AbstractJavaGeneratedType { } @Override - String localTypeName(@NonNull final JavaTypeName type) { + String localTypeName(final JavaTypeName type) { // Locally-anchored type, this is simple: just strip the first local name component and concat the others final Iterator it = type.localNameComponents().iterator(); it.next();