directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r235757 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java
Date Mon, 22 Aug 2005 17:09:11 GMT
Author: akarasulu
Date: Mon Aug 22 10:09:09 2005
New Revision: 235757

URL: http://svn.apache.org/viewcvs?rev=235757&view=rev
Log:
Applying Stefan's patch to fix schema objectClass rendering with MAY MUST lists.
Now if empty the MAY, and MUST list terms are not rendered.  Thanks Stefan!

Here's the JIRA issue link:

http://issues.apache.org/jira/browse/DIREVE-227


Modified:
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java?rev=235757&r1=235756&r2=235757&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java
Mon Aug 22 10:09:09 2005
@@ -266,13 +266,13 @@
             buf.append( " " ).append( oc.getType().getName() );
         }
 
-        if ( oc.getMustList() != null )
+        if ( oc.getMustList() != null && oc.getMustList().length > 0 )
         {
             buf.append( " MUST " );
             render( buf, oc.getMustList() );
         }
 
-        if ( oc.getMayList() != null )
+        if ( oc.getMayList() != null && oc.getMayList().length > 0 )
         {
             buf.append( " MAY " );
             render( buf, oc.getMayList() );



Mime
View raw message