Remove superfluous @NonNull annotation 73/84473/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 10:11:14 +0000 (12:11 +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>
binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/CodeHelpers.java

index 091f4782224b1712807391bba50635e84dcc21e3..3b66eca326275ed6e30a07fae86d053b598bd0d6 100644 (file)
@@ -90,7 +90,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);