directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r951444 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
Date Fri, 04 Jun 2010 15:33:11 GMT
Author: felixk
Date: Fri Jun  4 15:33:10 2010
New Revision: 951444

URL: http://svn.apache.org/viewvc?rev=951444&view=rev
Log:
Improve iterating

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java?rev=951444&r1=951443&r2=951444&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
Fri Jun  4 15:33:10 2010
@@ -790,11 +790,11 @@ public class DescriptionUtils
 
     private static void getExtensions( StringBuilder sb, Map<String, List<String>>
extensions )
     {
-        for ( String key : extensions.keySet() )
+        for ( Map.Entry<String, List<String>> extension : extensions.entrySet())
         {
-            sb.append( key ).append( " " );
+            sb.append( extension.getKey() ).append( " " );
 
-            List<String> values = extensions.get( key );
+            List<String> values = extension.getValue();
 
             if ( ( values != null ) && ( values.size() != 0 ) )
             {



Mime
View raw message