directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1022856 - /directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Fri, 15 Oct 2010 08:19:21 GMT
Author: pamarcelot
Date: Fri Oct 15 08:19:21 2010
New Revision: 1022856

URL: http://svn.apache.org/viewvc?rev=1022856&view=rev
Log:
Cleaner solution.
Omitting the varargs parameter will automatically provide a null value instead.
Credits goes to kayyagari. ;)

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

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=1022856&r1=1022855&r2=1022856&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
Fri Oct 15 08:19:21 2010
@@ -935,8 +935,7 @@ public class LdapNetworkConnection exten
         LOG.debug( "Bind request : {}", name );
 
         // Create the BindRequest
-        BindRequest bindRequest = createBindRequest( name, StringTools.getBytesUtf8( credentials
), null,
-            new Control[0] );
+        BindRequest bindRequest = createBindRequest( name, StringTools.getBytesUtf8( credentials
), null );
 
         return bind( bindRequest );
     }



Mime
View raw message