directory-commits mailing list archives

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

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

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

Modified: directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java?rev=1771017&r1=1771016&r2=1771017&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
(original)
+++ directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
Wed Nov 23 18:18:21 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;
@@ -82,7 +81,7 @@ public abstract class AbstractLdapConnec
     @Override
     public void bind( Dn name ) throws LdapException
     {
-        byte[] credBytes = StringConstants.EMPTY_BYTES;
+        byte[] credBytes = Strings.EMPTY_BYTES;
 
         BindRequest bindRequest = new BindRequestImpl();
         bindRequest.setDn( name );
@@ -122,7 +121,7 @@ public abstract class AbstractLdapConnec
     @Override
     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/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1771017&r1=1771016&r2=1771017&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Wed Nov 23 18:18:21 2016
@@ -1090,7 +1090,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 );
 
@@ -1122,7 +1122,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 );
     }
@@ -1141,7 +1141,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 );
     }
@@ -1182,7 +1182,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/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java?rev=1771017&r1=1771016&r2=1771017&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java
(original)
+++ directory/shared/branches/shared-value/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/SaslRequest.java
Wed Nov 23 18:18:21 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