directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1591755 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
Date Thu, 01 May 2014 19:57:47 GMT
Author: seelmann
Date: Thu May  1 19:57:46 2014
New Revision: 1591755

URL: http://svn.apache.org/r1591755
Log:
Append newline after each attribute/value, remove unused flag

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java?rev=1591755&r1=1591754&r2=1591755&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
Thu May  1 19:57:46 2014
@@ -2633,15 +2633,8 @@ public final class DefaultEntry implemen
         
         if ( attributes.size() != 0 )
         {
-            boolean isFirst = true;
-
             for ( Attribute attribute : attributes.values() )
             {
-                if ( isFirst )
-                {
-                    isFirst = false;
-                }
-
                 String id = attribute.getId();
 
                 if ( schemaManager != null )
@@ -2655,6 +2648,7 @@ public final class DefaultEntry implemen
                     else if ( !attributeType.equals( objectClassAttributeType ) )
                     {
                         sb.append( attribute.toString( tabs + "    " ) );
+                        sb.append( '\n' );
                         continue;
                     }
                 }



Mime
View raw message