Commit 8f941537 authored by Eric Bruneton's avatar Eric Bruneton

Fix computeMaxs option ignored in readAndWrite().

parent 23ed7e2d
Pipeline #2654 passed with stage
in 7 minutes and 25 seconds
......@@ -94,7 +94,7 @@ public class ASMAdapter extends Adapter {
public byte[] readAndWrite(final byte[] classFile, final boolean computeMaxs) {
ClassReader classReader = new ClassReader(classFile);
ClassWriter classWriter = new ClassWriter(0);
ClassWriter classWriter = new ClassWriter(computeMaxs ? classWriter.COMPUTE_MAXS : 0);
classReader.accept(classWriter, 0);
return classWriter.toByteArray();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment