Skip to content

Commit

Permalink
treenode conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunis committed Aug 23, 2019
1 parent 4022270 commit acbae49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ public static boolean compareNodes(DefaultMutableTreeNode n1,DefaultMutableTreeN
* @return
*/
private static DefaultMutableTreeNode findNode(DefaultMutableTreeNode n, DefaultMutableTreeNode tree) {
for (Enumeration <DefaultMutableTreeNode> e = tree.preorderEnumeration(); e.hasMoreElements();) {
DefaultMutableTreeNode d = e.nextElement();
for (Enumeration e = tree.preorderEnumeration(); e.hasMoreElements();) {
DefaultMutableTreeNode d = (DefaultMutableTreeNode) e.nextElement();
if(compareNodes(n,d)) {
System.out.println("-- Search for "+n.getUserObject().toString() +" - FOUND at level "+d.getLevel()+" [MDEParser::findNode]");
return d;
Expand Down

0 comments on commit acbae49

Please sign in to comment.