diff --git a/jode/jode/bytecode/FieldInfo.java b/jode/jode/bytecode/FieldInfo.java index 1220750..d6cf0ec 100644 --- a/jode/jode/bytecode/FieldInfo.java +++ b/jode/jode/bytecode/FieldInfo.java @@ -28,6 +28,15 @@ public class FieldInfo extends BinaryInfo { Type type; Object constant; + public FieldInfo() { + } + + public FieldInfo(String name, Type type, int modifier) { + this.name = name; + this.type = type; + this.modifier = modifier; + } + public String getName() { return name; } diff --git a/jode/jode/bytecode/MethodInfo.java b/jode/jode/bytecode/MethodInfo.java index 0dfd851..7bfdb2d 100644 --- a/jode/jode/bytecode/MethodInfo.java +++ b/jode/jode/bytecode/MethodInfo.java @@ -29,6 +29,15 @@ public class MethodInfo extends BinaryInfo { String name; MethodType type; + public MethodInfo() { + } + + public MethodInfo(String name, MethodType type, int modifier) { + this.name = name; + this.type = type; + this.modifier = modifier; + } + public void read(ConstantPool constantPool, DataInputStream input, int howMuch) throws IOException { modifier = input.readUnsignedShort();