directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1071349 - /directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/DnUtils.java
Date Wed, 16 Feb 2011 18:11:49 GMT
Author: elecharny
Date: Wed Feb 16 18:11:49 2011
New Revision: 1071349

URL: http://svn.apache.org/viewvc?rev=1071349&view=rev
Log:
Removed the getParent method, is a duplication of the Dn.getparent() method

Modified:
    directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/DnUtils.java

Modified: directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/DnUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/DnUtils.java?rev=1071349&r1=1071348&r2=1071349&view=diff
==============================================================================
--- directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/DnUtils.java
(original)
+++ directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/DnUtils.java
Wed Feb 16 18:11:49 2011
@@ -50,28 +50,6 @@ public class DnUtils
 
 
     /**
-     * Gets the parent Dn of the given Dn or null if the given
-     * Dn hasn't a parent.
-     * 
-     * @param dn the Dn
-     * 
-     * @return the parent Dn, null if the given Dn hasn't a parent
-     */
-    public static Dn getParent( Dn dn )
-    {
-        if ( dn.size() < 1 )
-        {
-            return null;
-        }
-        else
-        {
-            Dn parent = (Dn) dn.getPrefix( dn.size() - 1 );
-            return parent;
-        }
-    }
-
-
-    /**
      * Compose an Dn based on the given Rdn and Dn.
      * 
      * @param rdn the Rdn



Mime
View raw message