Add property to injectors to specify max allowed injections, closes #195

This commit is contained in:
Mumfrey committed 2017-07-19 18:31:37 +01:00
1 parent 55777fcf42
commit f08fc3bb2a
11 files changed
+179 -21

No files matched your search

@@ -24,8 +24,6 @@
*/
package org.spongepowered.asm.util;
import static org.spongepowered.asm.lib.ClassWriter.*;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.lang.annotation.Annotation;
@@ -319,7 +317,7 @@ public final class Bytecode {
* @param classNode the classNode to verify
*/
public static void dumpClass(ClassNode classNode) {
ClassWriter cw = new ClassWriter(COMPUTE_MAXS | COMPUTE_FRAMES);
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
classNode.accept(cw);
Bytecode.dumpClass(cw.toByteArray());
}