commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1695642 - in /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile: LocalVariableTable.java Utility.java
Date Thu, 13 Aug 2015 01:36:31 GMT
Author: chas
Date: Thu Aug 13 01:36:31 2015
New Revision: 1695642

URL: http://svn.apache.org/r1695642
Log:
BCEL-231
Remove deprecated methods and classes

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/LocalVariableTable.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/LocalVariableTable.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/LocalVariableTable.java?rev=1695642&r1=1695641&r2=1695642&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/LocalVariableTable.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/LocalVariableTable.java
Thu Aug 13 01:36:31 2015
@@ -118,26 +118,6 @@ public class LocalVariableTable extends
     /** 
      * 
      * @param index the variable slot
-     * 
-     * @return the first LocalVariable that matches the slot or null if not found
-     * 
-     * @deprecated since 5.2 because multiple variables can share the
-     *             same slot, use getLocalVariable(int index, int pc) instead.
-     */
-    @java.lang.Deprecated
-    public final LocalVariable getLocalVariable( int index ) {
-        for (LocalVariable variable : local_variable_table) {
-            if (variable.getIndex() == index) {
-                return variable;
-            }
-        }
-        return null;
-    }
-
-
-    /** 
-     * 
-     * @param index the variable slot
      * @param pc the current pc that this variable is alive
      * 
      * @return the LocalVariable that matches or null if not found

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java?rev=1695642&r1=1695641&r2=1695642&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java
Thu Aug 13 01:36:31 2015
@@ -691,7 +691,7 @@ public abstract class Utility {
                 String param_type = signatureToString(signature.substring(index), chopit);
                 buf.append(param_type);
                 if (vars != null) {
-                    LocalVariable l = vars.getLocalVariable(var_index);
+                    LocalVariable l = vars.getLocalVariable(var_index, 0);
                     if (l != null) {
                         buf.append(" ").append(l.getName());
                     }



Mime
View raw message