svn commit: r438652 - /jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java
[email protected] Wed, 30 Aug 2006 21:47:14 -0000
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: dbrosius
Date: Wed Aug 30 14:47:14 2006
New Revision: 438652
URL: http://svn.apache.org/viewvc?rev=438652&view=rev
Log:
remove needless synchronization
Modified:
jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java
Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java?rev=438652&r1=438651&r2=438652&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java Wed Aug 30 14:47:14 2006
@@ -17,10 +17,13 @@
package org.apache.bcel.verifier.structurals;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
+import java.util.Map;
import java.util.Set;
+
import org.apache.bcel.generic.ASTORE;
import org.apache.bcel.generic.ATHROW;
import org.apache.bcel.generic.BranchInstruction;
@@ -412,7 +415,7 @@
// instructions that belong to a subroutine.
Set instructions_assigned = new HashSet(); // we don't want to assign an instruction to two or more Subroutine objects.
- Hashtable colors = new Hashtable(); //Graph colouring. Key: InstructionHandle, Value: Integer .
+ Map colors = new HashMap(); //Graph colouring. Key: InstructionHandle, Value: Integer .
iter = sub_leaders.iterator();
while (iter.hasNext()){