Fix ValueWithQName.getQName() name 75/86575/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Dec 2019 22:17:11 +0000 (23:17 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Dec 2019 22:24:08 +0000 (23:24 +0100)
This adds a SpotBugs suppression and adds the correct name for the
method.

Change-Id: Ibe985a63c21693bc9efdcb4cb98513ebf4c01b7c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/ValueWithQName.java

index 83298d83b1a0f7b6c0fba935234b3c553b3e2c68..a73e79b02760e9540efc8ffa459ebf4f53272039 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.yangtools.yang.data.impl.codec;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.util.AbstractMap.SimpleImmutableEntry;
 import org.opendaylight.yangtools.yang.common.QName;
 
@@ -17,7 +18,13 @@ public class ValueWithQName<V> extends SimpleImmutableEntry<QName, V> {
         super(qname, value);
     }
 
+    @Deprecated(forRemoval = true)
+    @SuppressFBWarnings(value = "NM_CONFUSING", justification = "Legacy typo")
     public QName getQname() {
         return getKey();
     }
+
+    public QName getQName() {
+        return getKey();
+    }
 }