directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1771016 - in /directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api: AbstractLdapConnection.java LdapNetworkConnection.java SaslRequest.java
Date Wed, 23 Nov 2016 18:14:12 GMT
Author: elecharny
Date: Wed Nov 23 18:14:12 2016
New Revision: 1771016

URL: http://svn.apache.org/viewvc?rev=1771016&view=rev
Log:
Using the Strings.EMPTY_BTES instead of the StringConstants.EMPTY_BYTES constant

Modified:
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java?rev=1771016&r1=1771015&r2=1771016&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
Wed Nov 23 18:14:12 2016
@@ -33,7 +33,6 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.message.Control;
 import org.apache.directory.api.ldap.model.name.Dn;
 import org.apache.directory.api.ldap.model.schema.SchemaManager;
-import org.apache.directory.api.util.StringConstants;
 import org.apache.directory.api.util.Strings;
 import org.apache.mina.core.service.IoHandlerAdapter;
 import org.slf4j.Logger;
@@ -81,7 +80,7 @@ public abstract class AbstractLdapConnec
      */
     public void bind( Dn name ) throws LdapException
     {
-        byte[] credBytes = StringConstants.EMPTY_BYTES;
+        byte[] credBytes = Strings.EMPTY_BYTES;
 
         BindRequest bindRequest = new BindRequestImpl();
         bindRequest.setDn( name );
@@ -118,7 +117,7 @@ public abstract class AbstractLdapConnec
      */
     public void bind( Dn name, String credentials ) throws LdapException
     {
-        byte[] credBytes = ( credentials == null ? StringConstants.EMPTY_BYTES : Strings.getBytesUtf8(
credentials ) );
+        byte[] credBytes = ( credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8(
credentials ) );
 
         BindRequest bindRequest = new BindRequestImpl();
         bindRequest.setDn( name );

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1771016&r1=1771015&r2=1771016&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Wed Nov 23 18:14:12 2016
@@ -1081,7 +1081,7 @@ public class LdapNetworkConnection exten
         LOG.debug( "Anonymous Bind request" );
 
         // Create the BindRequest
-        BindRequest bindRequest = createBindRequest( StringConstants.EMPTY, StringConstants.EMPTY_BYTES
);
+        BindRequest bindRequest = createBindRequest( StringConstants.EMPTY, Strings.EMPTY_BYTES
);
 
         BindResponse bindResponse = bind( bindRequest );
 
@@ -1111,7 +1111,7 @@ public class LdapNetworkConnection exten
         LOG.debug( "Anonymous asynchronous Bind request" );
 
         // Create the BindRequest
-        BindRequest bindRequest = createBindRequest( StringConstants.EMPTY, StringConstants.EMPTY_BYTES
);
+        BindRequest bindRequest = createBindRequest( StringConstants.EMPTY, Strings.EMPTY_BYTES
);
 
         return bindAsync( bindRequest );
     }
@@ -1130,7 +1130,7 @@ public class LdapNetworkConnection exten
         LOG.debug( "Bind request : {}", name );
 
         // Create the BindRequest
-        BindRequest bindRequest = createBindRequest( name, StringConstants.EMPTY_BYTES );
+        BindRequest bindRequest = createBindRequest( name, Strings.EMPTY_BYTES );
 
         return bindAsync( bindRequest );
     }
@@ -1170,7 +1170,7 @@ public class LdapNetworkConnection exten
         LOG.debug( "Bind request : {}", name );
 
         // Create the BindRequest
-        BindRequest bindRequest = createBindRequest( name, StringConstants.EMPTY_BYTES );
+        BindRequest bindRequest = createBindRequest( name, Strings.EMPTY_BYTES );
 
         return bindAsync( bindRequest );
     }

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java?rev=1771016&r1=1771015&r2=1771016&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java
Wed Nov 23 18:14:12 2016
@@ -28,7 +28,6 @@ import java.util.List;
 import org.apache.directory.api.ldap.model.constants.SaslQoP;
 import org.apache.directory.api.ldap.model.constants.SaslSecurityStrength;
 import org.apache.directory.api.ldap.model.message.Control;
-import org.apache.directory.api.util.StringConstants;
 import org.apache.directory.api.util.Strings;
 
 
@@ -136,7 +135,7 @@ public abstract class SaslRequest
         }
         else
         {
-            return StringConstants.EMPTY_BYTES;
+            return Strings.EMPTY_BYTES;
         }
     }
 



Mime
View raw message