Can detect unused parameters

This commit is contained in:
Adam
2015-05-05 13:36:54 -04:00
parent e70466fc0a
commit 0d21d49d2d
4 changed files with 95 additions and 0 deletions

View File

@@ -22,6 +22,14 @@ public class NameAndType extends PoolEntry
nameIndex = is.readUnsignedShort();
descriptorIndex = is.readUnsignedShort();
}
public NameAndType(ConstantPool pool, int name, int type)
{
super(pool, ConstantType.NAME_AND_TYPE);
this.nameIndex = name;
this.descriptorIndex = type;
}
public java.lang.String getName()
{