jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r292113 - in /jakarta/bcel/trunk/src/java/org/apache/bcel/verifier: VerifierFactory.java structurals/Pass3bVerifier.java
Date Wed, 28 Sep 2005 03:47:00 GMT
Author: dbrosius
Date: Tue Sep 27 20:46:48 2005
New Revision: 292113

URL: http://svn.apache.org/viewcvs?rev=292113&view=rev
Log:
don't rely on the Vector 'interface'

Modified:
    jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierFactory.java
    jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierFactory.java?rev=292113&r1=292112&r2=292113&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierFactory.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierFactory.java Tue Sep 27 20:46:48
2005
@@ -19,6 +19,7 @@
 
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.List;
 import java.util.Map;
 import java.util.Vector;
 
@@ -42,7 +43,7 @@
 	/**
 	 * The VerifierFactoryObserver instances that observe the VerifierFactory.
 	 */
-	private static Vector observers = new Vector();
+	private static List observers = new Vector();
 
 	/**
 	 * The VerifierFactory is not instantiable.
@@ -93,13 +94,13 @@
 	 * Adds the VerifierFactoryObserver o to the list of observers.
 	 */
 	public static void attach(VerifierFactoryObserver o){
-		observers.addElement(o);
+		observers.add(o);
 	}
 	
 	/**
 	 * Removes the VerifierFactoryObserver o from the list of observers.
 	 */
 	public static void detach(VerifierFactoryObserver o){
-			observers.removeElement(o);
+			observers.remove(o);
 	}
 }

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java?rev=292113&r1=292112&r2=292113&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java Tue
Sep 27 20:46:48 2005
@@ -20,8 +20,10 @@
 import java.io.PrintWriter;
 import java.io.StringWriter;
 import java.util.ArrayList;
+import java.util.List;
 import java.util.Random;
 import java.util.Vector;
+
 import org.apache.bcel.Constants;
 import org.apache.bcel.Repository;
 import org.apache.bcel.classfile.JavaClass;
@@ -72,8 +74,8 @@
 	 * we have about its symbolic execution predecessors.
 	 */
 	private static final class InstructionContextQueue{
-		private Vector ics = new Vector(); // Type: InstructionContext
-		private Vector ecs = new Vector(); // Type: ArrayList (of InstructionContext)
+		private List ics = new Vector(); // Type: InstructionContext
+		private List ecs = new Vector(); // Type: ArrayList (of InstructionContext)
 		public void add(InstructionContext ic, ArrayList executionChain){
 			ics.add(ic);
 			ecs.add(executionChain);



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message