cstamas commented on code in PR #2217:
URL: https://github.com/apache/maven-resolver/pull/2217#discussion_r4329845919


##########
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/ruletree/PrefixTree.java:
##########
@@ -76,12 +117,24 @@ public boolean acceptedPath(String path) {
         final List<String> pathElements = elementsOfPath(path);
         PrefixTree currentNode = this;
         for (String pathElement : pathElements) {
-            currentNode = currentNode.siblings.get(pathElement);
+            currentNode = currentNode.children.get(pathElement);
             if (currentNode == null || currentNode.isLeaf()) {
                 break;
             }
         }
         // path is accepted if its elements lead to an existing node that is a 
leaf node
         return currentNode != null && currentNode.isLeaf();
     }
+
+    @Override
+    public String toString() {
+        return name + (leaf ? "*" : "");
+    }
+
+    public void dump(String prefix) {
+        System.out.println(prefix + this);
+        for (PrefixTree node : children.values()) {
+            node.dump(prefix + "  ");
+        }
+    }

Review Comment:
   Dropped



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to