Separate out ReadDataParams
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / FieldsParameterParser.java
index 1f98e429bec0150fdc77c235b2863420c4b3d5d2..d8eb31b5e8cc201b6e199652898871fdf1c878df 100644 (file)
@@ -66,7 +66,7 @@ final class FieldsParameterParser {
     // parsers instead of ten.
     private Deque<NodeSelectorParser> parsers;
 
-    @NonNull FieldsParameter parse(final String str) throws ParseException {
+    @NonNull ImmutableList<NodeSelector> parseNodeSelectors(final String str) throws ParseException {
         final var nodeSelectors = ImmutableList.<NodeSelector>builder();
 
         int idx = 0;
@@ -77,7 +77,7 @@ final class FieldsParameterParser {
 
             if (next == str.length()) {
                 // We have reached the end, we are done
-                return new FieldsParameter(nodeSelectors.build());
+                return nodeSelectors.build();
             }
 
             final char ch = str.charAt(next);