You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/26 11:21:02 UTC
svn commit: r1697864 -
/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
Author: sebb
Date: Wed Aug 26 09:21:01 2015
New Revision: 1697864
URL: http://svn.apache.org/r1697864
Log:
Restore deprecation
Modified:
commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java?rev=1697864&r1=1697863&r2=1697864&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java Wed Aug 26 09:21:01 2015
@@ -22,9 +22,6 @@ import org.apache.commons.bcel6.classfil
import org.apache.commons.bcel6.classfile.ConstantPool;
import org.apache.commons.bcel6.classfile.ConstantUtf8;
-// We have removed Deprecated from getClassName() as we continue to use
-// it with our tools and want to remove warnings. (markro)
-
/**
* Super class for InvokeInstruction and FieldInstruction, since they have
* some methods in common!
@@ -69,16 +66,18 @@ public abstract class FieldOrMethod exte
}
- /** @return name of the referenced class/interface
- * deprecated If the instruction references an array class,
+ /**
+ * @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
+ * the {@link #getReferenceType()} method, which correctly distinguishes
* between class types and array types.
+ *
*/
-// @Deprecated
+ @Deprecated
public String getClassName( ConstantPoolGen cpg ) {
ConstantPool cp = cpg.getConstantPool();
ConstantCP cmr = (ConstantCP) cp.getConstant(super.getIndex());