Ivan-nikitko commented on code in PR #559:
URL: https://github.com/apache/cayenne/pull/559#discussion_r1087700992
##########
modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/db/load/DbImportTreeNode.java:
##########
@@ -207,4 +210,45 @@ public boolean isLoaded() {
public void setLoaded(boolean loaded) {
isLoaded = loaded;
}
+
+ public List<DbImportTreeNode> getChildNodes() {
+ List<DbImportTreeNode> childNodes = new ArrayList<>();
Review Comment:
We need casting in DbTreeNode here, so we can't just to collect Enumeration
in List. I propose something like this
`return this.children.stream().map(c -> (DbImportTreeNode)
c).collect(Collectors.toList());`
--
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]