Initialize FilterTree.children 35/96335/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 24 May 2021 11:06:29 +0000 (13:06 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 24 May 2021 11:06:59 +0000 (13:06 +0200)
This is a simple move of initializer, so that it is obvious what
is going on.

Change-Id: I002cc767bd0d98855c31a172d45ccdc39389a5b5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/get/FilterContentValidator.java

index bcffae92161379e6467fdfc01fa0ce9a4224400a..cca0a2b262f7379eef74f2d3f5e5dadf5fcf1a3c 100644 (file)
@@ -236,17 +236,15 @@ public class FilterContentValidator {
      * Class represents tree of QNames as they are present in the filter.
      */
     private static class FilterTree {
-
+        private final Map<QName, FilterTree> children = new HashMap<>();
+        private final DataSchemaNode schemaNode;
         private final QName name;
         private final Type type;
-        private final DataSchemaNode schemaNode;
-        private final Map<QName, FilterTree> children;
 
         FilterTree(final QName name, final Type type, final DataSchemaNode schemaNode) {
             this.name = name;
             this.type = type;
             this.schemaNode = schemaNode;
-            this.children = new HashMap<>();
         }
 
         FilterTree addChild(final DataSchemaNode data) {