directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r633527 - in /directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src: main/java/org/apache/directory/server/core/avltree/ test/java/org/apache/directory/server/core/avltree/
Date Tue, 04 Mar 2008 16:16:13 GMT
Author: akarasulu
Date: Tue Mar  4 08:16:08 2008
New Revision: 633527

URL: http://svn.apache.org/viewvc?rev=633527&view=rev
Log:
just using consistent camel humps in class names following other classes

Added:
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTree.java
      - copied, changed from r633486, directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AVLTree.java
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreePerfTest.java
      - copied, changed from r633486, directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreePerfTest.java
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeTest.java
      - copied, changed from r633478, directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreeTest.java
Removed:
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AVLTree.java
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreePerfTest.java
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreeTest.java
Modified:
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
    directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeMarshallerTest.java

Copied: directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTree.java
(from r633486, directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AVLTree.java)
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTree.java?p2=directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTree.java&p1=directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AVLTree.java&r1=633486&r2=633527&rev=633527&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AVLTree.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTree.java
Tue Mar  4 08:16:08 2008
@@ -31,7 +31,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class AVLTree<K>
+public class AvlTree<K>
 {
     /** the root of the tree */
 	private LinkedAvlNode<K> root;
@@ -51,7 +51,7 @@
 	 *
 	 * @param comparator the comparator to be used for comparing keys
 	 */
-	public AVLTree( Comparator<K> comparator)
+	public AvlTree( Comparator<K> comparator)
 	{
 	    this.comparator = comparator;
 	}

Modified: directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java?rev=633527&r1=633526&r2=633527&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
Tue Mar  4 08:16:08 2008
@@ -26,7 +26,7 @@
 import java.io.IOException;
 import java.util.Comparator;
 
-import org.apache.directory.server.core.avltree.AVLTree;
+import org.apache.directory.server.core.avltree.AvlTree;
 import org.apache.directory.server.core.avltree.LinkedAvlNode;
 
 /**
@@ -37,7 +37,7 @@
  * @version $Rev$, $Date$
  */
 @SuppressWarnings("unchecked")
-public class AvlTreeMarshaller<E> implements Marshaller<AVLTree<E>>
+public class AvlTreeMarshaller<E> implements Marshaller<AvlTree<E>>
 {
 
     /** marshaller to be used for marshalling the keys */
@@ -66,7 +66,7 @@
      * Marshals the given tree to bytes
      * @param tree the tree to be marshalled
      */
-    public byte[] marshal( AVLTree<E> tree )
+    public byte[] marshal( AvlTree<E> tree )
     {
         if( tree.isEmpty() )
         {
@@ -139,7 +139,7 @@
      * 
      * @param data byte array to be converted into AVLTree  
      */
-    public AVLTree<E> unMarshal( byte[] data )
+    public AvlTree<E> unMarshal( byte[] data )
     {
         ByteArrayInputStream bin = new ByteArrayInputStream( data );
         DataInputStream din = new DataInputStream( bin );
@@ -151,7 +151,7 @@
             nodes = new LinkedAvlNode[ size ];
             LinkedAvlNode<E> root = readTree( din, null );
             
-            AVLTree<E> tree = new AVLTree<E>( comparator );
+            AvlTree<E> tree = new AvlTree<E>( comparator );
             
             tree.setRoot( root );
             

Modified: directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeMarshallerTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeMarshallerTest.java?rev=633527&r1=633526&r2=633527&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeMarshallerTest.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeMarshallerTest.java
Tue Mar  4 08:16:08 2008
@@ -30,7 +30,7 @@
 import java.io.IOException;
 import java.util.Comparator;
 
-import org.apache.directory.server.core.avltree.AVLTree;
+import org.apache.directory.server.core.avltree.AvlTree;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -43,11 +43,11 @@
 public class AvlTreeMarshallerTest
 {
 
-    AVLTree<Integer> tree;
+    AvlTree<Integer> tree;
     Comparator<Integer> comparator;
     AvlTreeMarshaller<Integer> treeMarshaller;
     
-    static AVLTree<Integer> savedTree;
+    static AvlTree<Integer> savedTree;
     
     File treeFile = new File( System.getProperty( "java.io.tmpdir" ) + File.separator + "avl.tree");
     
@@ -65,7 +65,7 @@
         };
         
       
-      tree = new AVLTree<Integer>( comparator );  
+      tree = new AvlTree<Integer>( comparator );  
       treeMarshaller = new AvlTreeMarshaller<Integer>( comparator, new IntegerKeyMarshaller()
);
     }
     
@@ -100,7 +100,7 @@
         byte[] data = new byte[ ( int )treeFile.length() ];
         fin.read( data );
         
-        AVLTree<Integer> unmarshalledTree = treeMarshaller.unMarshal( data );
+        AvlTree<Integer> unmarshalledTree = treeMarshaller.unMarshal( data );
         
         System.out.println("\nunmarshalled tree\n---------------");
         unmarshalledTree.printTree();

Copied: directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreePerfTest.java
(from r633486, directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreePerfTest.java)
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreePerfTest.java?p2=directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreePerfTest.java&p1=directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreePerfTest.java&r1=633486&r2=633527&rev=633527&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreePerfTest.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreePerfTest.java
Tue Mar  4 08:16:08 2008
@@ -38,9 +38,9 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class AVLTreePerfTest
+public class AvlTreePerfTest
 {
-    AVLTree<Integer> tree;
+    AvlTree<Integer> tree;
     
     String tempDir = System.getProperty( "java.io.tmpdir" );
    
@@ -68,7 +68,7 @@
     @Before
     public void createTree()
     {
-      tree = new AVLTree<Integer>( new Comparator<Integer>() 
+      tree = new AvlTree<Integer>( new Comparator<Integer>() 
           {
 
             public int compare( Integer i1, Integer i2 )
@@ -283,7 +283,7 @@
         start = System.nanoTime();
         
         fin.read(data);
-        tree = (AVLTree<Integer>) treeMarshaller.unMarshal( data );
+        tree = (AvlTree<Integer>) treeMarshaller.unMarshal( data );
         
         end = System.nanoTime();
         System.out.println("total time taken for reconstructing a serialized AVLTree ->"
+ getTime( start, end ) );

Copied: directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeTest.java
(from r633478, directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreeTest.java)
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeTest.java?p2=directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeTest.java&p1=directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreeTest.java&r1=633478&r2=633527&rev=633527&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AVLTreeTest.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/core-avl/src/test/java/org/apache/directory/server/core/avltree/AvlTreeTest.java
Tue Mar  4 08:16:08 2008
@@ -40,15 +40,15 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class AVLTreeTest
+public class AvlTreeTest
 {
 
-    AVLTree<Integer> tree;
+    AvlTree<Integer> tree;
     
     @Before
     public void createTree()
     {
-      tree = new AVLTree<Integer>( new Comparator<Integer>() 
+      tree = new AvlTree<Integer>( new Comparator<Integer>() 
           {
 
             public int compare( Integer i1, Integer i2 )



Mime
View raw message