directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1138842 - /directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/sourceeditor/ACICodeScanner.java
Date Thu, 23 Jun 2011 11:57:26 GMT
Author: pamarcelot
Date: Thu Jun 23 11:57:26 2011
New Revision: 1138842

URL: http://svn.apache.org/viewvc?rev=1138842&view=rev
Log:
Usage of foreach loop.

Modified:
    directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/sourceeditor/ACICodeScanner.java

Modified: directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/sourceeditor/ACICodeScanner.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/sourceeditor/ACICodeScanner.java?rev=1138842&r1=1138841&r2=1138842&view=diff
==============================================================================
--- directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/sourceeditor/ACICodeScanner.java
(original)
+++ directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/sourceeditor/ACICodeScanner.java
Thu Jun 23 11:57:26 2011
@@ -163,33 +163,33 @@ public class ACICodeScanner extends Rule
         WordRule wr = new WordRule( new AciWordDetector(), undefined );
 
         // Adding Keywords
-        for ( int i = 0; i < aciKeywords.length; ++i )
+        for ( String aciKeyword : aciKeywords )
         {
-            wr.addWord( aciKeywords[i], keyword );
+            wr.addWord( aciKeyword, keyword );
         }
 
         // Adding GrantValues
-        for ( int i = 0; i < aciGrantValues.length; ++i )
+        for ( String aciGrantValue : aciGrantValues )
         {
-            wr.addWord( aciGrantValues[i], grantValue );
+            wr.addWord( aciGrantValue, grantValue );
         }
 
         // Adding DenyValues
-        for ( int i = 0; i < aciDenyValues.length; ++i )
+        for ( String aciDenyValue : aciDenyValues )
         {
-            wr.addWord( aciDenyValues[i], denyValue );
+            wr.addWord( aciDenyValue, denyValue );
         }
 
         // Adding itemOrUserFirstSectionPartition
-        for ( int i = 0; i < itemOrUserFirstSectionPartition.length; ++i )
+        for ( String itemOrUserFirstSectionPartitionValue : itemOrUserFirstSectionPartition
)
         {
-            wr.addWord( itemOrUserFirstSectionPartition[i], itemOrUserFirst );
+            wr.addWord( itemOrUserFirstSectionPartitionValue, itemOrUserFirst );
         }
 
         // Adding User
-        for ( int i = 0; i < userSection.length; ++i )
+        for ( String userSectionValue : userSection )
         {
-            wr.addWord( userSection[i], user );
+            wr.addWord( userSectionValue, user );
         }
 
         wr.addWord( identificationTagPartition, identification );



Mime
View raw message