lowka commented on code in PR #6276:
URL: https://github.com/apache/ignite-3/pull/6276#discussion_r2218362439
##########
modules/runner/src/test/java/org/apache/ignite/internal/configuration/compatibility/framework/ConfigNode.java:
##########
@@ -185,11 +193,17 @@ void addChildNodes(ConfigNode... childNodes) {
}
/**
- * Returns {@code true} if this node is a root node, {@code false}
otherwise.
+ * Add a polymorhic child node to this node.
*/
- @JsonIgnore
- public boolean isRoot() {
- return parent == null;
+ void addPolymorhicNode(String name, Map<String, ConfigNode> childNodes) {
+ boolean nameMatches = childNodes.values().stream().allMatch(n ->
n.name().equals(name));
+ if (!nameMatches) {
+ throw new IllegalArgumentException("All nodes name should be equal
to " + name);
Review Comment:
Fixed.
--
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]