Skip to content

Commit

Permalink
Merge pull request #103 from clienthax/patch-1
Browse files Browse the repository at this point in the history
Avoid race conditions
  • Loading branch information
ZombieHDGaming authored Oct 24, 2019
2 parents ccc581a + e8540e9 commit a382465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/dimdev/jeid/JEIDTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
}

private static MethodNode locateMethod(ClassNode cn, String desc, String... namesIn) {
return cn.methods.parallelStream()
return cn.methods.stream()
.filter(n -> n.desc.equals(desc) && anyMatch(namesIn, n.name))
.findAny().orElseThrow(() -> new ASMException(getNames(namesIn) +": "+desc+" cannot be found in "+cn.name, cn));
}
Expand Down

0 comments on commit a382465

Please sign in to comment.