Make NamespaceBehaviour.toString() final 77/80577/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Feb 2019 13:27:06 +0000 (14:27 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Feb 2019 14:08:23 +0000 (15:08 +0100)
We are providing addToStringAttributes(), hence toString() should
be final to force consistency.

Change-Id: I40d9dbc355f257b2560c92c6f7a2145a311c8cfa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/NamespaceBehaviour.java

index e9c93ac8a78ab939187f28e5ed3aa3e09d93adc9..487175e51f091faaedbbf1b7f6715b2de8af493c 100644 (file)
@@ -344,8 +344,7 @@ public abstract class NamespaceBehaviour<K, V, N extends IdentifierNamespace<K,
     }
 
     @Override
-    // FIXME: 3.0.0: make this final
-    public String toString() {
+    public final String toString() {
         return addToStringAttributes(MoreObjects.toStringHelper(this)).toString();
     }