directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1084229 - in /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name: ComplexDnParser.java FastDnParser.java
Date Tue, 22 Mar 2011 15:59:03 GMT
Author: elecharny
Date: Tue Mar 22 15:59:02 2011
New Revision: 1084229

URL: http://svn.apache.org/viewvc?rev=1084229&view=rev
Log:
Made the ComplexDnParser and FastDnParser package protected

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/ComplexDnParser.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/FastDnParser.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/ComplexDnParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/ComplexDnParser.java?rev=1084229&r1=1084228&r2=1084229&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/ComplexDnParser.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/ComplexDnParser.java
Tue Mar 22 15:59:02 2011
@@ -32,7 +32,7 @@ import org.apache.directory.shared.ldap.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ComplexDnParser
+/* No protection*/ class ComplexDnParser
 {
 
     /**
@@ -43,7 +43,7 @@ public class ComplexDnParser
      * 
      * @throws LdapInvalidDnException the invalid name exception
      */
-    public void parseDn( String name, List<Rdn> rdns ) throws LdapInvalidDnException
+    /* No protection*/ void parseDn( String name, List<Rdn> rdns ) throws LdapInvalidDnException
     {
         AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name
) ) );
         
@@ -68,7 +68,7 @@ public class ComplexDnParser
      * 
      * @throws LdapInvalidDnException the invalid name exception
      */
-    public void parseRdn( String name, Rdn rdn ) throws LdapInvalidDnException
+    /* No protection*/ void parseRdn( String name, Rdn rdn ) throws LdapInvalidDnException
     {
         AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name
) ) );
         

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/FastDnParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/FastDnParser.java?rev=1084229&r1=1084228&r2=1084229&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/FastDnParser.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/FastDnParser.java
Tue Mar 22 15:59:02 2011
@@ -37,29 +37,18 @@ import org.apache.directory.shared.util.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public enum FastDnParser
+/* No protection*/ enum FastDnParser
 {
     INSTANCE;
 
     /**
-     * Gets the name parser singleton instance.
-     * 
-     * @return the name parser
-     *
-    public static FastDnParser getNameParser()
-    {
-        return INSTANCE;
-    }
-
-
-    /**
      * Parses a Dn from a String
      *
      * @param name The Dn to parse
      * @return A valid Dn
      * @throws org.apache.directory.shared.ldap.model.exception.LdapException If the Dn was
invalid
      */
-    public static Dn parse( String name ) throws LdapException
+    /* No protection*/ static Dn parse( String name ) throws LdapException
     {
         Dn dn = new Dn();
         parseDn( name, dn );
@@ -75,7 +64,7 @@ public enum FastDnParser
      * 
      * @throws LdapInvalidDnException the invalid name exception
      */
-    public static void parseDn( String name, Dn dn ) throws LdapInvalidDnException
+    /* No protection*/ static void parseDn( String name, Dn dn ) throws LdapInvalidDnException
     {
         parseDn(name, dn.rdns);
         dn.setUpName( name );
@@ -83,7 +72,7 @@ public enum FastDnParser
     }
     
     
-    public static void parseDn( String name, List<Rdn> rdns ) throws LdapInvalidDnException
+    /* No protection*/ static void parseDn( String name, List<Rdn> rdns ) throws LdapInvalidDnException
     {
         if ( ( name == null ) || ( name.trim().length() == 0 ) )
         {
@@ -129,7 +118,7 @@ public enum FastDnParser
      * 
      * @throws LdapInvalidDnException the invalid name exception
      */
-    public static void parseRdn( String name, Rdn rdn ) throws LdapInvalidDnException
+    /* No protection*/ static void parseRdn( String name, Rdn rdn ) throws LdapInvalidDnException
     {
         if ( name == null || name.length() == 0 )
         {



Mime
View raw message