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

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Thu Jun 23 16:21:38 CDT 2011


Author: wozniak
Date: 2011-06-23 16:21:38 -0500 (Thu, 23 Jun 2011)
New Revision: 4674

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java
Log:
Use generics


Modified: trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java	2011-06-23 21:20:57 UTC (rev 4673)
+++ trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java	2011-06-23 21:21:38 UTC (rev 4674)
@@ -62,8 +62,9 @@
 			fn = getElement(0);
 
 			String counterName = (String) stack.getVar(VAR);
-			List l = (List) stack.getVar(counterName);
-			Integer wrappedi = (Integer)l.get(0);
+			@SuppressWarnings("unchecked")
+            List<Integer> l = (List<Integer>) stack.getVar(counterName);
+			Integer wrappedi = l.get(0);
 			int i = wrappedi.intValue();
 			i++;
 			ThreadingContext tc = (ThreadingContext)stack.getVar("#iteratethread");




More information about the Swift-commit mailing list