Remove deprecated warning
This commit is contained in:
parent
8f247ec6ce
commit
665b1be623
@ -75,14 +75,7 @@ public abstract class FieldOrMethod extends CPInstruction implements LoadClass {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return name of the referenced class/interface
|
* @return name of the referenced class/interface
|
||||||
* @deprecated If the instruction references an array class, this method
|
|
||||||
* will return "java.lang.Object". For code generated by Java
|
|
||||||
* 1.5, this answer is sometimes wrong (e.g., if the "clone()"
|
|
||||||
* method is called on an array). A better idea is to use the
|
|
||||||
* getReferenceType() method, which correctly distinguishes
|
|
||||||
* between class types and array types.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public String getClassName(ConstantPoolGen cpg) {
|
public String getClassName(ConstantPoolGen cpg) {
|
||||||
ConstantPool cp = cpg.getConstantPool();
|
ConstantPool cp = cpg.getConstantPool();
|
||||||
ConstantCP cmr = (ConstantCP) cp.getConstant(index);
|
ConstantCP cmr = (ConstantCP) cp.getConstant(index);
|
||||||
|
Loading…
Reference in New Issue
Block a user