@@ -282,7 +282,7 @@ static String[] listPlatformEntries(File libraryFolder, String folderName, Strin
282282 }
283283
284284
285- static protected HashMap <String , Object > packageWarningMap = new HashMap <String , Object >();
285+ static protected HashMap <String , Object > packageWarningMap = new HashMap <>();
286286
287287 /**
288288 * Add the packages provided by this library to the master list that maps
@@ -461,12 +461,7 @@ public boolean supportsArch(int platform, String variant) {
461461
462462
463463 static public boolean hasMultipleArch (int platform , List <Library > libraries ) {
464- for (Library library : libraries ) {
465- if (library .hasMultipleArch (platform )) {
466- return true ;
467- }
468- }
469- return false ;
464+ return libraries .stream ().anyMatch (library -> library .hasMultipleArch (platform ));
470465 }
471466
472467
@@ -484,7 +479,7 @@ public boolean accept(File dir, String name) {
484479
485480
486481 static public List <File > discover (File folder ) {
487- List <File > libraries = new ArrayList <File >();
482+ List <File > libraries = new ArrayList <>();
488483 String [] folderNames = folder .list (junkFolderFilter );
489484
490485 // if a bad folder or something like that, this might come back null
@@ -529,8 +524,8 @@ static public List<File> discover(File folder) {
529524
530525
531526 static public List <Library > list (File folder ) {
532- List <Library > libraries = new ArrayList <Library >();
533- List <File > librariesFolders = new ArrayList <File >();
527+ List <Library > libraries = new ArrayList <>();
528+ List <File > librariesFolders = new ArrayList <>();
534529 librariesFolders .addAll (discover (folder ));
535530
536531 for (File baseFolder : librariesFolders ) {
0 commit comments