directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r918439 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/SearchingOperationContext.java
Date Wed, 03 Mar 2010 12:20:05 GMT
Author: elecharny
Date: Wed Mar  3 12:20:05 2010
New Revision: 918439

URL: http://svn.apache.org/viewvc?rev=918439&view=rev
Log:
Replaced a static constant by the StringTools constant

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/SearchingOperationContext.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/SearchingOperationContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/SearchingOperationContext.java?rev=918439&r1=918438&r2=918439&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/SearchingOperationContext.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/SearchingOperationContext.java
Wed Mar  3 12:20:05 2010
@@ -39,6 +39,7 @@
 import org.apache.directory.shared.ldap.schema.AttributeTypeOptions;
 import org.apache.directory.shared.ldap.schema.SchemaUtils;
 import org.apache.directory.shared.ldap.util.ArrayUtils;
+import org.apache.directory.shared.ldap.util.StringTools;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -55,8 +56,6 @@
     /** The LoggerFactory used by this Interceptor */
     private static Logger LOG = LoggerFactory.getLogger( SearchingOperationContext.class
);
     
-    private static String[] EMPTY_STR_ARRAY = new String[0];
-
     /** A flag describing the way alias should be handled */
     protected AliasDerefMode aliasDerefMode = AliasDerefMode.DEREF_ALWAYS;
 
@@ -123,7 +122,7 @@
     protected void setReturningAttributes( Collection<String> attributesIds ) 
         throws Exception
     {
-        setReturningAttributes( attributesIds.toArray( EMPTY_STR_ARRAY ) );
+        setReturningAttributes( attributesIds.toArray( StringTools.EMPTY_STRINGS ) );
     }
     
     



Mime
View raw message