javassist
javassist copied to clipboard
[IntegerMemberValue]use the static factory method instead of the constructor
IntegerMemberValue's constructor is different from other MemberValue.
public IntegerMemberValue(ConstPool cp, int value)
I think we can use the static factory method instead of the constructor to create MemberValue.
like this:
public static IntegerMemberValue create(int value, ConstPool)