Skip to content

Commit fd658c4

Browse files
committed
Revert "[asm-cherry-pick] Use MethodWriter to compute maxLocals / maxStack"
This reverts commit 1e70eda.
1 parent ec96335 commit fd658c4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/scala/tools/asm/MethodWriter.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @author Eric Bruneton
3737
* @author Eugene Kuleshov
3838
*/
39-
public final class MethodWriter extends MethodVisitor {
39+
final class MethodWriter extends MethodVisitor {
4040

4141
/** Indicates that nothing must be computed. */
4242
static final int COMPUTE_NOTHING = 0;
@@ -312,17 +312,9 @@ public final class MethodWriter extends MethodVisitor {
312312
/** The max_stack field of the Code attribute. */
313313
private int maxStack;
314314

315-
public int getMaxStack() {
316-
return maxStack;
317-
}
318-
319315
/** The max_locals field of the Code attribute. */
320316
private int maxLocals;
321317

322-
public int getMaxLocals() {
323-
return maxLocals;
324-
}
325-
326318
/** The 'code' field of the Code attribute. */
327319
private final ByteVector code = new ByteVector();
328320

0 commit comments

Comments
 (0)