commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r918238 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharRangeTest.java
Date Tue, 02 Mar 2010 22:55:22 GMT
Author: sebb
Date: Tue Mar  2 22:55:22 2010
New Revision: 918238

URL: http://svn.apache.org/viewvc?rev=918238&view=rev
Log:
Fix raw types

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharRangeTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharRangeTest.java?rev=918238&r1=918237&r2=918238&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/CharRangeTest.java Tue
Mar  2 22:55:22 2010
@@ -312,13 +312,13 @@
         CharRange notFirst = CharRange.isNotIn((char) 1, Character.MAX_VALUE);
         CharRange notLast = CharRange.isNotIn((char) 0, (char) (Character.MAX_VALUE - 1));
 
-        Iterator aIt = a.iterator();
+        Iterator<Character> aIt = a.iterator();
         assertNotNull(aIt);
         assertTrue(aIt.hasNext());
         assertEquals(Character.valueOf('a'), aIt.next());
         assertFalse(aIt.hasNext());
 
-        Iterator adIt = ad.iterator();
+        Iterator<Character> adIt = ad.iterator();
         assertNotNull(adIt);
         assertTrue(adIt.hasNext());
         assertEquals(Character.valueOf('a'), adIt.next());
@@ -327,15 +327,15 @@
         assertEquals(Character.valueOf('d'), adIt.next());
         assertFalse(adIt.hasNext());
 
-        Iterator notaIt = nota.iterator();
+        Iterator<Character> notaIt = nota.iterator();
         assertNotNull(notaIt);
         assertTrue(notaIt.hasNext());
         while (notaIt.hasNext()) {
-            Character c = (Character) notaIt.next();
+            Character c = notaIt.next();
             assertFalse('a' == c.charValue());
         }
 
-        Iterator emptySetIt = emptySet.iterator();
+        Iterator<Character> emptySetIt = emptySet.iterator();
         assertNotNull(emptySetIt);
         assertFalse(emptySetIt.hasNext());
         try {
@@ -345,7 +345,7 @@
             assertTrue(true);
         }
 
-        Iterator notFirstIt = notFirst.iterator();
+        Iterator<Character> notFirstIt = notFirst.iterator();
         assertNotNull(notFirstIt);
         assertTrue(notFirstIt.hasNext());
         assertEquals(Character.valueOf((char) 0), notFirstIt.next());
@@ -357,7 +357,7 @@
             assertTrue(true);
         }
 
-        Iterator notLastIt = notLast.iterator();
+        Iterator<Character> notLastIt = notLast.iterator();
         assertNotNull(notLastIt);
         assertTrue(notLastIt.hasNext());
         assertEquals(Character.valueOf(Character.MAX_VALUE), notLastIt.next());



Mime
View raw message