Commit c27d984b authored by Eric Bruneton's avatar Eric Bruneton

Restore bug fix, make previously added test pass.

parent e8e78f19
Pipeline #806 passed with stage
in 5 minutes and 52 seconds
......@@ -65,8 +65,6 @@ public class LocalVariablesSorter extends MethodVisitor {
/** Index of the next local variable to be created by {@link #newLocal}. */
protected int nextLocal;
private boolean changed;
/**
* Constructs a new {@link LocalVariablesSorter}. <i>Subclasses must not use this constructor</i>.
* Instead, they must use the {@link #LocalVariablesSorter(int, int, String, MethodVisitor)}
......@@ -188,10 +186,6 @@ public class LocalVariablesSorter extends MethodVisitor {
throw new IllegalStateException(
"ClassReader.accept() should be called with EXPAND_FRAMES flag");
}
if (!changed) { // optimization for the case where mapping = identity
mv.visitFrame(type, nLocal, local, nStack, stack);
return;
}
// creates a copy of newLocals
Object[] oldLocals = new Object[newLocals.length];
......@@ -287,7 +281,6 @@ public class LocalVariablesSorter extends MethodVisitor {
int local = newLocalMapping(type);
setLocalType(local, type);
setFrameLocal(local, t);
changed = true;
return local;
}
......@@ -345,9 +338,6 @@ public class LocalVariablesSorter extends MethodVisitor {
} else {
value--;
}
if (value != var) {
changed = true;
}
return value;
}
......
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