directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1353229 - in /directory/apacheds/trunk: ldap-client-test/src/test/java/org/apache/directory/shared/client/api/ xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/ xdbm-tools/src/main/java/org/apache/directory/server/core/...
Date Sun, 24 Jun 2012 08:25:25 GMT
Author: elecharny
Date: Sun Jun 24 08:25:24 2012
New Revision: 1353229

URL: http://svn.apache.org/viewvc?rev=1353229&view=rev
Log:
o Removed useless imports, minor refactoring

Modified:
    directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/AdsSchemaLoaderTest.java
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/SearchEngine.java
    directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java

Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/AdsSchemaLoaderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/AdsSchemaLoaderTest.java?rev=1353229&r1=1353228&r2=1353229&view=diff
==============================================================================
--- directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/AdsSchemaLoaderTest.java
(original)
+++ directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/AdsSchemaLoaderTest.java
Sun Jun 24 08:25:24 2012
@@ -82,5 +82,4 @@ public class AdsSchemaLoaderTest extends
 
         assertTrue( sm.getRegistries().getAttributeTypeRegistry().contains( "cn" ) );
     }
-
 }

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/SearchEngine.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/SearchEngine.java?rev=1353229&r1=1353228&r2=1353229&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/SearchEngine.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/SearchEngine.java
Sun Jun 24 08:25:24 2012
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ * 
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ * 
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ * 
  */
 package org.apache.directory.server.xdbm.search;
 
@@ -28,8 +28,6 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.apache.directory.server.xdbm.IndexCursor;
 
-import javax.naming.directory.SearchControls;
-
 
 /**
  * Given a search filter and a scope the search engine identifies valid
@@ -41,27 +39,27 @@ public interface SearchEngine<E, ID>
 {
     /**
      * @todo put this in the right place
-     * The alias dereferencing mode key for JNDI providers 
+     * The alias dereferencing mode key for JNDI providers
      */
     String ALIASMODE_KEY = JndiPropertyConstants.JNDI_LDAP_DAP_DEREF_ALIASES;
-    /** 
+    /**
      * @todo put this in the right place
-     * The alias dereferencing mode value for JNDI providers 
+     * The alias dereferencing mode value for JNDI providers
      */
     String ALWAYS = "always";
-    /** 
+    /**
      * @todo put this in the right place
-     * The alias dereferencing mode value for JNDI providers 
+     * The alias dereferencing mode value for JNDI providers
      */
     String NEVER = "never";
-    /** 
+    /**
      * @todo put this in the right place
-     * The alias dereferencing mode value for JNDI providers 
+     * The alias dereferencing mode value for JNDI providers
      */
     String FINDING = "finding";
-    /** 
+    /**
      * @todo put this in the right place
-     * The alias dereferencing mode value for JNDI providers 
+     * The alias dereferencing mode value for JNDI providers
      */
     String SEARCHING = "searching";
 

Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java?rev=1353229&r1=1353228&r2=1353229&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java
(original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java
Sun Jun 24 08:25:24 2012
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ * 
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ * 
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ * 
  */
 package org.apache.directory.server.core.partition.impl.btree.gui;
 
@@ -35,7 +35,6 @@ import java.util.Map;
 import java.util.Stack;
 
 import javax.naming.NamingException;
-import javax.naming.directory.SearchControls;
 import javax.swing.JFileChooser;
 import javax.swing.JFrame;
 import javax.swing.JLabel;
@@ -665,7 +664,7 @@ public class PartitionFrame extends JFra
         int count = 0;
         while ( cursor.next() && count < limitMax )
         {
-            IndexEntry rec = ( IndexEntry ) cursor.get();
+            IndexEntry rec = cursor.get();
             row[0] = rec.getId();
             row[1] = partition.getEntryDn( ( Long ) row[0] ).getNormName();
             tableModel.addRow( row );



Mime
View raw message