directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1787341 - in /directory/apacheds/trunk: core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/DeleteReferralIT.java protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/PersistentSearchListener.java
Date Fri, 17 Mar 2017 12:37:28 GMT
Author: elecharny
Date: Fri Mar 17 12:37:27 2017
New Revision: 1787341

URL: http://svn.apache.org/viewvc?rev=1787341&view=rev
Log:
Used teh Strings.EMPTY_STRING_ARRAY constant

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/DeleteReferralIT.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/PersistentSearchListener.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/DeleteReferralIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/DeleteReferralIT.java?rev=1787341&r1=1787340&r2=1787341&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/DeleteReferralIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/DeleteReferralIT.java
Fri Mar 17 12:37:27 2017
@@ -39,6 +39,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.exception.LdapNoSuchObjectException;
 import org.apache.directory.api.ldap.model.exception.LdapReferralException;
 import org.apache.directory.api.ldap.model.name.Dn;
+import org.apache.directory.api.util.Strings;
 import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.annotations.ApplyLdifs;
 import org.apache.directory.server.core.annotations.CreateDS;
@@ -213,7 +214,7 @@ public class DeleteReferralIT extends Ab
         
         try
         {
-            session.lookup( dn, new String[]{} );
+            session.lookup( dn, Strings.EMPTY_STRING_ARRAY );
             fail();
         }
         catch ( LdapNoSuchObjectException lnsoe )
@@ -277,7 +278,7 @@ public class DeleteReferralIT extends Ab
         // We should not find the entry
         try
         {
-            session.lookup( dn, new String[]{} );
+            session.lookup( dn, Strings.EMPTY_STRING_ARRAY );
             fail();
         }
         catch ( LdapNoSuchObjectException lnsoe )
@@ -337,7 +338,7 @@ public class DeleteReferralIT extends Ab
         // We should not find the entry
         try
         {
-            session.lookup( dn, new String[]{} );
+            session.lookup( dn, Strings.EMPTY_STRING_ARRAY );
             fail();
         }
         catch ( LdapNoSuchObjectException lnsoe )

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/PersistentSearchListener.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/PersistentSearchListener.java?rev=1787341&r1=1787340&r2=1787341&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/PersistentSearchListener.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/PersistentSearchListener.java
Fri Mar 17 12:37:27 2017
@@ -32,6 +32,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.message.controls.EntryChangeImpl;
 import org.apache.directory.api.ldap.model.message.controls.PersistentSearch;
 import org.apache.directory.api.ldap.model.schema.SchemaManager;
+import org.apache.directory.api.util.Strings;
 import org.apache.directory.server.core.api.entry.ClonedServerEntry;
 import org.apache.directory.server.core.api.entry.ServerEntryUtils;
 import org.apache.directory.server.core.api.event.DirectoryListener;
@@ -78,7 +79,7 @@ public class PersistentSearchListener im
         req.addAbandonListener( this );
         this.psearchControl = ( PersistentSearch ) req.getControls().get( PersistentSearch.OID
);
         
-        filterCtx = new LookupOperationContext( session.getCoreSession(), req.getAttributes().toArray(
new String[]{} ) );
+        filterCtx = new LookupOperationContext( session.getCoreSession(), req.getAttributes().toArray(
Strings.EMPTY_STRING_ARRAY ) );
         schemaManager = session.getCoreSession().getDirectoryService().getSchemaManager();
     }
 



Mime
View raw message