directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1141459 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
Date Thu, 30 Jun 2011 09:45:57 GMT
Author: elecharny
Date: Thu Jun 30 09:45:57 2011
New Revision: 1141459

URL: http://svn.apache.org/viewvc?rev=1141459&view=rev
Log:
Removed the Dn( Dn ) constructor

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

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java?rev=1141459&r1=1141458&r2=1141459&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
Thu Jun 30 09:45:57 2011
@@ -354,30 +354,6 @@ public class Dn implements Iterable<Rdn>
 
 
     /**
-     * Creates a schema aware Dn copying an existing Dn
-     *
-     * @param schemaManager the schema manager
-     * @param dn the Dn to copy
-     * @throws LdapInvalidDnException If the resulting Dn is invalid
-     */
-    public Dn( SchemaManager schemaManager, Dn dn ) throws LdapInvalidDnException
-    {
-        if ( dn == null )
-        {
-            throw new IllegalArgumentException( "The dn is null" );
-        }
-        
-        for ( Rdn rdnParent : dn )
-        {
-            rdns.add( rdnParent );
-        }
-        
-        apply( schemaManager );
-        toUpName();
-    }
-
-
-    /**
      * Creates a Schema aware Dn from a list of Rdns.
      *
      * @param schemaManager The SchemaManager to use



Mime
View raw message