Skip to content

Commit

Permalink
skip more asm reader operations (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj authored Nov 8, 2024
1 parent 2b9d22f commit 04690a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public byte[] transform(String name, String transformedName, byte[] bytes)

ClassNode classNode = new ClassNode();
ClassReader classReader = new ClassReader(bytes);
classReader.accept(classNode, 0);
classReader.accept(classNode, ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);

Collection<Modifier> mods = modifiers.get(transformedName);
for (Modifier m : mods)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ASMModParser(InputStream stream) throws IOException
try
{
ClassReader reader = new ClassReader(stream);
reader.accept(new ModClassVisitor(this), ClassReader.SKIP_CODE);
reader.accept(new ModClassVisitor(this), ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
}
catch (Exception ex)
{
Expand Down

0 comments on commit 04690a1

Please sign in to comment.