JaroslavTulach commented on code in PR #9781:
URL: https://github.com/apache/netbeans/pull/9781#discussion_r4458436847
##########
platform/openide.nodes/src/org/openide/nodes/Node.java:
##########
@@ -86,9 +86,12 @@
*
* @author Jaroslav Tulach,
*/
-public abstract class Node extends FeatureDescriptor implements
Lookup.Provider, HelpCtx.Provider {
- /** An empty leaf node. */
- public static final Node EMPTY = new AbstractNode(Children.LEAF);
+public abstract class Node extends FeatureDescriptor implements
Lookup.Provider, HelpCtx.Provider, EmptyNodeProvider {
+
+ static {
+ //hook for testing:
Review Comment:
Maybe only log when `assert assertsOn = true;`?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists