You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/08/22 19:09:11 UTC
svn commit: r235757 -
/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/SchemaUtils.java
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() );