Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 34088 invoked from network); 15 Oct 2010 08:20:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 08:20:20 -0000 Received: (qmail 26591 invoked by uid 500); 15 Oct 2010 08:20:19 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 26531 invoked by uid 500); 15 Oct 2010 08:20:18 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 26479 invoked by uid 99); 15 Oct 2010 08:20:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 08:20:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 08:20:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 78D6523889F7; Fri, 15 Oct 2010 08:19:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: pamarcelot@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101015081921.78D6523889F7@eris.apache.org> 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 ); }