From 408ae127916b740cfff1620afdce0bc12ae632e9 Mon Sep 17 00:00:00 2001 From: Harald Musum Date: Thu, 29 Aug 2019 09:52:43 +0200 Subject: Remove use of Nullable and NotNull annotations Different implementations and using OSGi makes it really hard to use these annotations and the value of using them is IMHO not very high. --- config-lib/src/test/java/com/yahoo/config/EnumNodeTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'config-lib/src/test/java/com') diff --git a/config-lib/src/test/java/com/yahoo/config/EnumNodeTest.java b/config-lib/src/test/java/com/yahoo/config/EnumNodeTest.java index 5feb5bc3b4f..65934e1cff3 100644 --- a/config-lib/src/test/java/com/yahoo/config/EnumNodeTest.java +++ b/config-lib/src/test/java/com/yahoo/config/EnumNodeTest.java @@ -1,7 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config; -import edu.umd.cs.findbugs.annotations.NonNull; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; @@ -9,7 +8,6 @@ import static org.junit.Assert.*; /** * @author Ulf Lilleengen - * @since 5.1 */ public class EnumNodeTest { private static class MyNode extends EnumNode { @@ -18,7 +16,7 @@ public class EnumNodeTest { public final static Enum TWO = Enum.TWO; @Override - protected boolean doSetValue(@NonNull String name) { + protected boolean doSetValue(String name) { try { value = Enum.valueOf(name); return true; -- cgit v1.2.3