Remove superfluous @NonNull annotation 81/84481/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 10:11:14 +0000 (12:11 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 18:48:41 +0000 (20:48 +0200)
MoreObjects.toStringHelper() is not tagged properly, hence generated
toString() methods generate a ton of nullness warnings. Fix that up
by removing the annotation (to mirror what we are otherwise doing
in other methods).

Change-Id: Ib4fc3d3fdd3fab1e5fb257f3e85c344999d6eb1a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 8123a3db8da09c4773e64829225274e5f973c05d)

binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/CodeHelpers.java

index 774ee6cdebc81740ffdec6e4e3c1b9882b8498ad..fe5d338fc9de28a2e4b05284c1b8f13664d27c94 100644 (file)
@@ -75,7 +75,7 @@ public final class CodeHelpers {
      * @param value Value to append
      * @throws NullPointerException if the name or helper is null
      */
-    public static void appendValue(final @NonNull ToStringHelper helper, final @NonNull String name,
+    public static void appendValue(final ToStringHelper helper, final @NonNull String name,
             final @Nullable Object value) {
         if (value != null) {
             helper.add(name, value);