File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
common/src/main/java/org/embeddedt/modernfix/util Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ private static void doClear() {
7070 MixinEnvironment .getDefaultEnvironment ().audit ();
7171 try {
7272 ClassNode emptyNode = new ClassNode ();
73- classInfoCache .entrySet ().removeIf (entry -> {
73+ List <Map .Entry <String , ClassInfo >> entries = new ArrayList <>(classInfoCache .entrySet ());
74+ entries .stream ().filter (entry -> {
7475 if (entry .getKey ().equals ("java/lang/Object" ))
7576 return false ;
7677 ClassInfo mixinClz = entry .getValue ();
@@ -88,7 +89,7 @@ private static void doClear() {
8889 e .printStackTrace ();
8990 }
9091 return true ;
91- });
92+ }). forEach ( entry -> classInfoCache . remove ( entry . getKey ())) ;
9293 } catch (RuntimeException e ) {
9394 e .printStackTrace ();
9495 }
You can’t perform that action at this time.
0 commit comments