[Swift-commit] r4736 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sat Jul 2 20:56:38 CDT 2011


Author: hategan
Date: 2011-07-02 20:56:38 -0500 (Sat, 02 Jul 2011)
New Revision: 4736

Modified:
   trunk/src/org/griphyn/vdl/karajan/PairIterator.java
Log:
generics

Modified: trunk/src/org/griphyn/vdl/karajan/PairIterator.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/PairIterator.java	2011-07-03 01:54:49 UTC (rev 4735)
+++ trunk/src/org/griphyn/vdl/karajan/PairIterator.java	2011-07-03 01:56:38 UTC (rev 4736)
@@ -9,11 +9,11 @@
 import org.globus.cog.karajan.util.KarajanIterator;
 
 public class PairIterator implements KarajanIterator {
-	private Iterator it;
+	private Iterator<?> it;
 	private int crt, count;
 	private Pair crto;
 	
-	public PairIterator(Map map) {
+	public PairIterator(Map<?, ?> map) {
 		this.it = map.entrySet().iterator();
 		this.count = map.size();
 	}
@@ -54,7 +54,7 @@
 	}
 	
 	private Pair convert(Object o) {
-		Map.Entry e = (Map.Entry) o;
+		Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
 		return new Pair(e.getKey(), e.getValue());
 	}
 	




More information about the Swift-commit mailing list