directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r503348 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
Date Sun, 04 Feb 2007 03:09:34 GMT
Author: akarasulu
Date: Sat Feb  3 19:09:33 2007
New Revision: 503348

URL: http://svn.apache.org/viewvc?view=rev&rev=503348
Log:
fixing for loop to use java5 construct

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java?view=diff&rev=503348&r1=503347&r2=503348
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
Sat Feb  3 19:09:33 2007
@@ -402,20 +402,20 @@
      * @param targetSubentry the target subentry after being modified
      */
     public void modifySchemaSubentry( LdapDN name, ModificationItemImpl[] mods, Attributes
subentry, 
-        Attributes targetSubentry ) throws NamingException
+        Attributes targetSubentry ) throws NamingException 
     {
-        for ( int ii = 0; ii < mods.length; ii++ )
+        for ( ModificationItemImpl mod : mods )
         {
-            switch ( mods[ii].getModificationOp() )
+            switch ( mod.getModificationOp() )
             {
                 case( DirContext.ADD_ATTRIBUTE ):
                     break;
                 case( DirContext.REMOVE_ATTRIBUTE ):
-                    break;
+                    break; 
                 case( DirContext.REPLACE_ATTRIBUTE ):
                     break;
                 default:
-                    throw new IllegalStateException( "Undefined modify operation: " + mods[ii].getModificationOp()
);
+                    throw new IllegalStateException( "Undefined modify operation: " + mod.getModificationOp()
);
             }
         }
     }



Mime
View raw message