Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 31430 invoked from network); 18 Aug 2010 16:45:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Aug 2010 16:45:56 -0000 Received: (qmail 60369 invoked by uid 500); 18 Aug 2010 16:45:56 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 60302 invoked by uid 500); 18 Aug 2010 16:45:55 -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 60295 invoked by uid 99); 18 Aug 2010 16:45:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Aug 2010 16:45:55 +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; Wed, 18 Aug 2010 16:45:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3E6D423889E9; Wed, 18 Aug 2010 16:44:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r986782 - /directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java Date: Wed, 18 Aug 2010 16:44:38 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100818164438.3E6D423889E9@eris.apache.org> Author: elecharny Date: Wed Aug 18 16:44:37 2010 New Revision: 986782 URL: http://svn.apache.org/viewvc?rev=986782&view=rev Log: Added some formating in the Javadoc Header Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java?rev=986782&r1=986781&r2=986782&view=diff ============================================================================== --- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java (original) +++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java Wed Aug 18 16:44:37 2010 @@ -44,6 +44,7 @@ import org.apache.directory.shared.ldap. /** * Decodes a LdapUrl, and checks that it complies with * the RFC 2255. The grammar is the following : + *
  * ldapurl    = scheme "://" [hostport] ["/"
  *                   [dn ["?" [attributes] ["?" [scope]
  *                   ["?" [filter] ["?" extensions]]]]]]
@@ -60,7 +61,7 @@ import org.apache.directory.shared.ldap.
  * exvalue    = LDAPString
  * token      = oid from section 4.1 of RFC 2252
  * xtoken     = ("X-" / "x-") token
- * 
+ * 
* @author Apache Directory Project */ public class LdapURL @@ -362,7 +363,8 @@ public class LdapURL * apply to the byte buffer TODO check that the topLabel is valid * (it must start with an alpha) */ - @SuppressWarnings("PMD.CollapsibleIfStatements") // Used because of comments + @SuppressWarnings("PMD.CollapsibleIfStatements") + // Used because of comments private int parseHost( char[] chars, int pos ) { @@ -400,7 +402,7 @@ public class LdapURL } // Let's check the string we had before the dot. - if ( isHostNumber && nbDots < 4 ) + if ( isHostNumber && nbDots < 4 ) { // We had only digits. It may be an IP adress? Check it @@ -1723,7 +1725,7 @@ public class LdapURL */ public void setScope( int scope ) { - try + try { this.scope = SearchScope.getSearchScope( scope ); }