Print

Print


Commit in lcsim/src/org/lcsim/contrib/uiowa/mipfinder on MAIN
Flash.java+4-21.1 -> 1.2
Make type-safe, fixing a typo-bug along the way

lcsim/src/org/lcsim/contrib/uiowa/mipfinder
Flash.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- Flash.java	29 Sep 2005 21:03:13 -0000	1.1
+++ Flash.java	1 Oct 2005 01:27:50 -0000	1.2
@@ -3,6 +3,7 @@
 import java.util.Hashtable;
 import java.util.Vector;
 import java.util.Enumeration;
+import java.util.Collection;
 
 import org.lcsim.event.CalorimeterHit;
 
@@ -164,7 +165,8 @@
      */
     Vector<CalorimeterHit> getVector(){
 	Vector<CalorimeterHit> v = new Vector<CalorimeterHit>(); 
-	v.addAll(flashVector.keySet());
+	Collection<CalorimeterHit> hits = flashVector.values();
+	v.addAll(hits);
 	return v; 
     }
 
@@ -179,6 +181,6 @@
     
     
     private Object[] array;
-    private Hashtable flashVector;
+    private Hashtable<Long, CalorimeterHit> flashVector;
     private int numberOfHits;
 }
CVSspam 0.2.8