directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r816087 - in /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema: DescriptionUtils.java SchemaObject.java
Date Thu, 17 Sep 2009 08:03:39 GMT
Author: elecharny
Date: Thu Sep 17 08:03:38 2009
New Revision: 816087

URL: http://svn.apache.org/viewvc?rev=816087&view=rev
Log:
Fixed the ToString() method for AttributeTypes (the name was not exposed correctly)

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java?rev=816087&r1=816086&r2=816087&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/DescriptionUtils.java
Thu Sep 17 08:03:38 2009
@@ -83,7 +83,7 @@
         buf.append( attributeType.getOid() );
         buf.append( '\n' );
 
-        if ( attributeType.getNames() != null )
+        if ( attributeType.getNames().size() != 0 )
         {
             buf.append( " NAME " );
             getQDescrs( buf, attributeType.getNames() );

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java?rev=816087&r1=816086&r2=816087&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaObject.java
Thu Sep 17 08:03:38 2009
@@ -187,7 +187,7 @@
      * Gets the first name in the set of short names for this SchemaObject if
      * any exists for it.
      * 
-     * @return the first of the names for this SchemaObject or an empty string 
+     * @return the first of the names for this SchemaObject or the oid
      * if one does not exist
      */
     public String getName()
@@ -198,7 +198,7 @@
         }
         else
         {
-            return StringTools.EMPTY;
+            return oid;
         }
     }
 



Mime
View raw message