ebarboni commented on code in PR #4194:
URL: https://github.com/apache/netbeans/pull/4194#discussion_r899942170


##########
nbbuild/antsrc/org/netbeans/nbbuild/extlibs/VerifyLibsAndLicenses.java:
##########
@@ -426,11 +429,13 @@ private void testLicenses() throws IOException {
 
     private void testLicenseinfo() throws IOException {
         Path nballPath = nball.toPath();
-        List<File> licenseinfofiles = Files.walk(nballPath)
-                .filter(p -> p.endsWith("licenseinfo.xml"))
-                .map(p -> p.toFile())
-                .collect(Collectors.toList());
-
+        List<File> licenseinfofiles = new ArrayList<>();
+        try ( Stream<Path> walk = Files.walk(nballPath)) {
+            licenseinfofiles = walk

Review Comment:
   in fact npe is catch allready not need to check at all :D



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