directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r672653 - /directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
Date Sun, 29 Jun 2008 18:14:40 GMT
Author: kayyagari
Date: Sun Jun 29 11:14:39 2008
New Revision: 672653

URL: http://svn.apache.org/viewvc?rev=672653&view=rev
Log:
fixed an issue with for() loop in dumpAttributes() and dumpModificationItems()
 methods

Modified:
    directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java

Modified: directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java?rev=672653&r1=672652&r2=672653&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
Sun Jun 29 11:14:39 2008
@@ -528,9 +528,9 @@
         try
         {
             for ( NamingEnumeration<? extends Attribute> attrs = attributes.getAll();

-                  attrs.hasMoreElements(); 
-                  attribute = attrs.nextElement())
+                  attrs.hasMoreElements(); )
             {
+                attribute = attrs.nextElement();
                 if ( attribute == null )
                 {
                     sb.append( "        Null attribute\n" );
@@ -541,9 +541,9 @@
                 Object value = null;
                 
                 for ( NamingEnumeration<?> values = attribute.getAll(); 
-                      values.hasMoreElements(); 
-                      value = values.nextElement())
+                      values.hasMoreElements(); )
                 {
+                    value = values.nextElement();
                     if ( value instanceof String )
                     {
                         sb.append(  "            " ).append( (String)value ).append('\n'
);
@@ -603,9 +603,9 @@
                 {
                     Object value = null;
                     for ( NamingEnumeration<?> values = attribute.getAll(); 
-                          values.hasMoreElements(); 
-                          value = values.nextElement() )
+                          values.hasMoreElements(); )
                     {
+                        value = values.nextElement();
                         if ( value instanceof String )
                         {
                             sb.append(  "                " ).append( (String)value ).append('\n'
);



Mime
View raw message