From 665b1be623f5963732b11fd8adaa3bb8c460b512 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sun, 15 Dec 2013 15:54:18 +0400 Subject: [PATCH] Remove deprecated warning --- src/org/apache/bcel/generic/FieldOrMethod.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/org/apache/bcel/generic/FieldOrMethod.java b/src/org/apache/bcel/generic/FieldOrMethod.java index 287fc54..9599221 100644 --- a/src/org/apache/bcel/generic/FieldOrMethod.java +++ b/src/org/apache/bcel/generic/FieldOrMethod.java @@ -75,14 +75,7 @@ public abstract class FieldOrMethod extends CPInstruction implements LoadClass { /** * @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) { ConstantPool cp = cpg.getConstantPool(); ConstantCP cmr = (ConstantCP) cp.getConstant(index);