zstan commented on code in PR #6305:
URL: https://github.com/apache/ignite-3/pull/6305#discussion_r2228230016
##########
modules/runner/src/test/java/org/apache/ignite/internal/configuration/compatibility/framework/ConfigNode.java:
##########
@@ -153,11 +153,18 @@ public String type() {
return attributes.get(Attributes.CLASS);
}
+ /**
+ * Returns flags for this node.
+ */
+ public Set<Flags> flags() {
+ return flags;
+ }
+
/**
* Returns the child nodes of this node.
*/
- public Collection<ConfigNode> childNodes() {
- return childNodeMap.values();
+ public Map<String, Node> children() {
+ return childNodeMap;
Review Comment:
i see, but still think it can be simplified
compareChildren run through Entry<String, Node> entryA : a.entrySet()
and key really used here equalNames(entryA, entryB) but key == Node.name()
which can be stored into Set not Map
--
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]