directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r804300 - /directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java
Date Fri, 14 Aug 2009 17:12:46 GMT
Author: elecharny
Date: Fri Aug 14 17:12:46 2009
New Revision: 804300

URL: http://svn.apache.org/viewvc?rev=804300&view=rev
Log:
Changed the toString to expose the up DN instead of the normalized form

Modified:
    directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java

Modified: directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java?rev=804300&r1=804299&r2=804300&view=diff
==============================================================================
--- directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java
(original)
+++ directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/DefaultServerEntry.java
Fri Aug 14 17:12:46 2009
@@ -2494,14 +2494,16 @@
         
         if ( dn.isNormalized() )
         {
-            sb.append( "[n]" );
+            sb.append( "[n]: " );
+            sb.append( dn.getUpName() );
         }
         else
         {
-            sb.append(  "[]" );
+            sb.append( "[]: " );
+            sb.append( dn );
         }
         
-        sb.append( ": " ).append( dn ).append( '\n' );
+        sb.append( '\n' );
         
         // First dump the ObjectClass attribute
         if ( containsAttribute( OBJECT_CLASS_AT ) )



Mime
View raw message