Remove unnecessary method 31/115731/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Mar 2025 11:51:06 +0000 (12:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Mar 2025 11:52:19 +0000 (12:52 +0100)
ContentMatchNode is a record, hence we do not need the accessor method.

JIRA: NETCONF-1445
Change-Id: Ia5883905956eb46bd0ba5e44f61619ac2ab015f0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/subtree/ContentMatchNode.java

index edb8865baa93dc091256b7c491a9acab2d3f80e7..9d9d798db57a5ebb2fa98bb966f8cf411fa7a456 100644 (file)
@@ -25,11 +25,6 @@ public record ContentMatchNode(NamespaceSelection selection, String value) imple
         checkNotWhitespace("trailing", value.charAt(value.length() - 1));
     }
 
-    @Override
-    public String value() {
-        return value;
-    }
-
     // RFC6241 says 'whitespace', we are assuming it means "XML whitespace", which can be found at
     // https://www.w3.org/TR/xml/#sec-common-syn
     private static void checkNotWhitespace(final String kind, final char ch) {