From 4af4e575252f31d69a12a9b5bb6ce55388455ed1 Mon Sep 17 00:00:00 2001 From: Paint_Ninja Date: Thu, 30 May 2024 21:20:10 +0100 Subject: [PATCH] Use `removeIf()` because why not. (#5) --- .../bootstrap/dev/BootstrapDevClasspathFixer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bs-dev/src/main/java/net/minecraftforge/bootstrap/dev/BootstrapDevClasspathFixer.java b/bs-dev/src/main/java/net/minecraftforge/bootstrap/dev/BootstrapDevClasspathFixer.java index 1bd0b92..d3d0696 100644 --- a/bs-dev/src/main/java/net/minecraftforge/bootstrap/dev/BootstrapDevClasspathFixer.java +++ b/bs-dev/src/main/java/net/minecraftforge/bootstrap/dev/BootstrapDevClasspathFixer.java @@ -88,10 +88,13 @@ private boolean processExplicit(List 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())