directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r819875 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
Date Tue, 29 Sep 2009 10:26:15 GMT
Author: elecharny
Date: Tue Sep 29 10:26:14 2009
New Revision: 819875

URL: http://svn.apache.org/viewvc?rev=819875&view=rev
Log:
Used some constants instead of strings in the code

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

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java?rev=819875&r1=819874&r2=819875&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
Tue Sep 29 10:26:14 2009
@@ -28,6 +28,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.ldap.constants.MetaSchemaConstants;
 import org.apache.directory.shared.ldap.entry.Entry;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.Modification;
@@ -1011,11 +1012,11 @@
 
     private static String getSchemaName( SchemaObject desc )
     {
-        List<String> values = desc.getExtensions().get( "X-SCHEMA" );
+        List<String> values = desc.getExtensions().get( MetaSchemaConstants.X_SCHEMA
);
 
         if ( values == null || values.size() == 0 )
         {
-            return "other";
+            return MetaSchemaConstants.SCHEMA_OTHER;
         }
 
         return values.get( 0 );



Mime
View raw message