directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1551912 - in /directory/mavibot/trunk/mavibot/src: main/java/org/apache/directory/mavibot/btree/ test/java/org/apache/directory/mavibot/btree/ test/java/org/apache/directory/mavibot/btree/comparator/ test/java/org/apache/directory/mavibot/...
Date Wed, 18 Dec 2013 11:11:04 GMT
Author: elecharny
Date: Wed Dec 18 11:11:03 2013
New Revision: 1551912

URL: http://svn.apache.org/r1551912
Log:
Made the RevisionName* classes package protected

Added:
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameComparatorTest.java
      - copied, changed from r1551485, directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/comparator/RevisionNameComparatorTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameSerializerTest.java
      - copied, changed from r1551485, directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/serializer/RevisionNameSerializerTest.java
Removed:
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/comparator/RevisionNameComparatorTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/serializer/RevisionNameSerializerTest.java
Modified:
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionName.java
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameComparator.java
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameSerializer.java

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionName.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionName.java?rev=1551912&r1=1551911&r2=1551912&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionName.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionName.java
Wed Dec 18 11:11:03 2013
@@ -23,10 +23,10 @@ package org.apache.directory.mavibot.btr
 /**
  * A data structure that stores a revision associated to a BTree name. We use
  * it to allow the access to old revisions.
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class RevisionName
+/* no qualifier*/ class RevisionName
 {
     /** The revision number on the BTree */
     private long revision;
@@ -40,7 +40,7 @@ public class RevisionName
      * @param revision The revision
      * @param name The BTree name
      */
-    public RevisionName( long revision, String name )
+    /* no qualifier*/ RevisionName( long revision, String name )
     {
         this.revision = revision;
         this.name = name;
@@ -50,7 +50,7 @@ public class RevisionName
     /**
      * @return the revision
      */
-    public long getRevision()
+    /* no qualifier*/ long getRevision()
     {
         return revision;
     }
@@ -59,7 +59,7 @@ public class RevisionName
     /**
      * @param revision the revision to set
      */
-    public void setRevision( long revision )
+    /* no qualifier*/ void setRevision( long revision )
     {
         this.revision = revision;
     }
@@ -68,7 +68,7 @@ public class RevisionName
     /**
      * @return the btree name
      */
-    public String getName()
+    /* no qualifier*/ String getName()
     {
         return name;
     }
@@ -77,7 +77,7 @@ public class RevisionName
     /**
      * @param name the btree name to set
      */
-    public void setName( String name )
+    /* no qualifier*/ void setName( String name )
     {
         this.name = name;
     }

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameComparator.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameComparator.java?rev=1551912&r1=1551911&r2=1551912&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameComparator.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameComparator.java
Wed Dec 18 11:11:03 2013
@@ -25,10 +25,10 @@ import java.util.Comparator;
 
 /**
  * A comparator for the RevisionName class
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class RevisionNameComparator implements Comparator<RevisionName>
+/* no qualifier*/ class RevisionNameComparator implements Comparator<RevisionName>
 {
     /**
      * {@inheritDoc}

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameSerializer.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameSerializer.java?rev=1551912&r1=1551911&r2=1551912&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameSerializer.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RevisionNameSerializer.java
Wed Dec 18 11:11:03 2013
@@ -39,12 +39,12 @@ import org.apache.directory.mavibot.btre
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class RevisionNameSerializer extends AbstractElementSerializer<RevisionName>
+/* no qualifier*/ class RevisionNameSerializer extends AbstractElementSerializer<RevisionName>
 {
     /**
      * Create a new instance of a RevisionNameSerializer
      */
-    public RevisionNameSerializer()
+    /* no qualifier*/ RevisionNameSerializer()
     {
         super( new RevisionNameComparator() );
     }
@@ -56,7 +56,7 @@ public class RevisionNameSerializer exte
      * @param in The byte array containing the RevisionName
      * @return A RevisionName instance
      */
-    public static RevisionName deserialize( byte[] in )
+    /* no qualifier*/ static RevisionName deserialize( byte[] in )
     {
         return deserialize( in, 0 );
     }
@@ -69,7 +69,7 @@ public class RevisionNameSerializer exte
      * @param start the position in the byte[] we will deserialize the RevisionName from
      * @return A RevisionName instance
      */
-    public static RevisionName deserialize( byte[] in, int start )
+    /* no qualifier*/ static RevisionName deserialize( byte[] in, int start )
     {
         // The buffer must be 8 bytes plus 4 bytes long (the revision is a long, and the
name is a String
         if ( ( in == null ) || ( in.length < 12 + start ) )
@@ -166,7 +166,7 @@ public class RevisionNameSerializer exte
      * @param value the value to serialize
      * @return The byte[] containing the serialized RevisionName
      */
-    public static byte[] serialize( byte[] buffer, int start, RevisionName revisionName )
+    /* no qualifier*/ static byte[] serialize( byte[] buffer, int start, RevisionName revisionName
)
     {
         if ( revisionName.getName() != null )
         {

Copied: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameComparatorTest.java
(from r1551485, directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/comparator/RevisionNameComparatorTest.java)
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameComparatorTest.java?p2=directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameComparatorTest.java&p1=directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/comparator/RevisionNameComparatorTest.java&r1=1551485&r2=1551912&rev=1551912&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/comparator/RevisionNameComparatorTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameComparatorTest.java
Wed Dec 18 11:11:03 2013
@@ -17,7 +17,7 @@
  *  under the License.
  *
  */
-package org.apache.directory.mavibot.btree.comparator;
+package org.apache.directory.mavibot.btree;
 
 
 import static org.junit.Assert.assertEquals;

Copied: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameSerializerTest.java
(from r1551485, directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/serializer/RevisionNameSerializerTest.java)
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameSerializerTest.java?p2=directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameSerializerTest.java&p1=directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/serializer/RevisionNameSerializerTest.java&r1=1551485&r2=1551912&rev=1551912&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/serializer/RevisionNameSerializerTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RevisionNameSerializerTest.java
Wed Dec 18 11:11:03 2013
@@ -17,7 +17,7 @@
  *  under the License.
  *
  */
-package org.apache.directory.mavibot.btree.serializer;
+package org.apache.directory.mavibot.btree;
 
 
 import static org.junit.Assert.assertEquals;
@@ -28,6 +28,9 @@ import java.io.IOException;
 
 import org.apache.directory.mavibot.btree.RevisionName;
 import org.apache.directory.mavibot.btree.RevisionNameSerializer;
+import org.apache.directory.mavibot.btree.serializer.BufferHandler;
+import org.apache.directory.mavibot.btree.serializer.LongSerializer;
+import org.apache.directory.mavibot.btree.serializer.StringSerializer;
 import org.junit.Test;
 
 



Mime
View raw message