Skip to content

Commit

Permalink
Avoid UnsupportedOperationException with some JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoschwald authored May 4, 2021
1 parent 0f38e4d commit abe6d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public boolean accept(File dir, String name) {
basenames.add(baseName);
}

List<String> mergedBasenames = Arrays.asList(basenamesDefinition);
List<String> mergedBasenames = new ArrayList<>(Arrays.asList(basenamesDefinition));
basenames.removeAll(mergedBasenames);
mergedBasenames.addAll(basenames);
super.setBasenames(mergedBasenames.toArray(new String[0]));
Expand Down

0 comments on commit abe6d86

Please sign in to comment.