Skip to content

Commit

Permalink
Use removeIf() because why not. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintNinja authored May 30, 2024
1 parent 53cebae commit 4af4e57
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ private boolean processExplicit(List<Path[]> classpath) {
}

// Remove any entries that are only a single path, no need to merge them
map.values().removeIf(paths -> paths.size() <= 1);
/*
for (var itr = map.values().iterator(); itr.hasNext(); ) {
if (itr.next().size() <= 1)
itr.remove();
}
*/

// No explicit paths set, so nope out
if (map.isEmpty())
Expand Down

0 comments on commit 4af4e57

Please sign in to comment.