Hello @core-libs-dev <[email protected]>,

I want to do a depth first search of a JTree.

DefaultMutableTreeNode has depthFirstEnumeration(). Nice if you are using
that class. But not if you are using just TreeNode.

Can we get that method moved up to the implemented interface TreeNode
instead?

Nothing about the implementation requires mutability, much less
DefaultMutableTreeNode.

And if you look at the actual implementation, you could literally copy and
paste it with absolutely 0 changes and it would just work.

I volunteer to do this. Again, it is literally just a copy paste with 0
code changes past that. And of course, since TreeNode is an interface, this
method would now be a default method.

Thank you for your time and consideration.
David Alayachew

Reply via email to