neilcsmith-net commented on code in PR #112:
URL: 
https://github.com/apache/netbeans-nbpackage/pull/112#discussion_r2310155385


##########
src/main/java/org/apache/netbeans/nbpackage/FileUtils.java:
##########
@@ -263,7 +262,7 @@ public static List<Path> findDirs(Path searchDir, int 
searchDepth, String... pat
                 }
             }).allMatch(v -> v);
         })) {
-            return List.copyOf(stream.collect(Collectors.toList()));
+            return List.copyOf(stream.toList());

Review Comment:
   I'm not sure (other than by mistake) why only one of those methods returned 
an unmodifiable list.  I think both should be the same, and probably 
`stream.toList()` is the right option now.  Possibly add note to docs that 
mentions the return is unmodifiable?



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