directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r951319 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
Date Fri, 04 Jun 2010 08:29:50 GMT
Author: felixk
Date: Fri Jun  4 08:29:49 2010
New Revision: 951319

URL: http://svn.apache.org/viewvc?rev=951319&view=rev
Log:
descent is by method param definition instanceof DN

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java?rev=951319&r1=951318&r2=951319&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
Fri Jun  4 08:29:49 2010
@@ -115,14 +115,7 @@ public class NamespaceTools
     {
         DN rdn = null;
         
-        if ( descendant instanceof DN )
-        {
-            rdn = ( DN ) descendant.clone();
-        }
-        else
-        {
-            rdn = new DN( descendant.toString() );
-        }
+        rdn = ( DN ) descendant.clone();
 
         if ( rdn.isChildOf( ancestor ) )
         {



Mime
View raw message