directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
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 GMT
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 :
+ * <pre>
  * 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
- * 
+ * </pre>
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 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 );
         }



Mime
View raw message