mbien commented on code in PR #220:
URL: 
https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/pull/220#discussion_r1960209262


##########
nbm-maven-plugin/src/main/java/org/apache/netbeans/nbm/CreateClusterAppMojo.java:
##########
@@ -1091,6 +1086,12 @@ static Map<String, Set<String>> 
computeClusterOrdering(Map<String, Set<String>>
         return cluster2depClusters;
     }
 
+    private static Set<String> intersection(Set<String> first, 
Collection<String> second) {
+        HashSet<String> intersection = new HashSet<>(first);

Review Comment:
   not sure I understand the concern. The set is only used in the form of 
`intersection.isEmpty()`.
   
   Maybe I should change the method to `doesIntersect()` and the impl to 
`return new HashSet(first).retainAll(second)`?



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

Reply via email to