commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1306469 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/NysiisTest.java
Date Wed, 28 Mar 2012 17:10:08 GMT
Author: ggregory
Date: Wed Mar 28 17:10:07 2012
New Revision: 1306469

URL: http://svn.apache.org/viewvc?rev=1306469&view=rev
Log:
Use Java 5 loops.

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/NysiisTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/NysiisTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/NysiisTest.java?rev=1306469&r1=1306468&r2=1306469&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/NysiisTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/NysiisTest.java
Wed Mar 28 17:10:07 2012
@@ -54,8 +54,8 @@ public class NysiisTest extends StringEn
     }
 
     private void encodeAll(String[] strings, String expectedEncoding) throws EncoderException
{
-        for (int i = 0; i < strings.length; i++) {
-            Assert.assertEquals("Problem with " + strings[i], expectedEncoding, getStringEncoder().encode(strings[i]));
+        for (String string : strings) {
+            Assert.assertEquals("Problem with " + string, expectedEncoding, getStringEncoder().encode(string));
         }
     }
 



Mime
View raw message