sdedic edited a comment on pull request #2629:
URL: https://github.com/apache/netbeans/pull/2629#issuecomment-800211528


   @pekuz Well, that's a question: for `root` project, returning self makes 
perfect sense. From each project, one hop through `RootProjectProvider` leads 
to the root, whatever it is. In a tree-like structure, it's quite common (IMHO) 
that a parent is null for the tree root.
   
   To make developer's life easier, there could be e.g. 
`ProjectUtils.projectContainment` that could return the whole sequence 
including self = never empty.


----------------------------------------------------------------
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.

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

Reply via email to