We have @NonNullByDefault, hence we do not need an explicit @NonNull.
Change-Id: I6b546d685d7ffb27577e377987fafd97ee7c3d64
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.stream.Stream;
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;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.opendaylight.mdsal.binding.model.api.GeneratedType;
import org.opendaylight.mdsal.binding.model.api.JavaTypeName;
- 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<String> it = type.localNameComponents().iterator();
it.next();
// Locally-anchored type, this is simple: just strip the first local name component and concat the others
final Iterator<String> it = type.localNameComponents().iterator();
it.next();