directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r689571 - /directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
Date Wed, 27 Aug 2008 19:12:27 GMT
Author: elecharny
Date: Wed Aug 27 12:12:26 2008
New Revision: 689571

URL: http://svn.apache.org/viewvc?rev=689571&view=rev
Log:
Minor modification (refactoring+javadoc)

Modified:
    directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java

Modified: directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java?rev=689571&r1=689570&r2=689571&view=diff
==============================================================================
--- directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
(original)
+++ directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
Wed Aug 27 12:12:26 2008
@@ -53,6 +53,7 @@
      */
     private static final long serialVersionUID = 1L;
 
+    /** The internal structure holding the CSNs */
     private final Map<String,CSN> csns = new HashMap<String,CSN>();
 
     /**
@@ -89,7 +90,7 @@
     }
 
     /**
-     * Returns the {@link CSN} whith the specified <tt>replicaId</tt> from
+     * Returns the {@link CSN} with the specified <tt>replicaId</tt> from
      * this vector.
      * 
      * @return <tt>null</tt> if there's no match
@@ -139,10 +140,12 @@
         {
             return true;
         }
+        
         if ( !( object instanceof CSNVector ) )
         {
             return false;
         }
+        
         CSNVector rhs = ( CSNVector ) object;
         return new EqualsBuilder().append( this.csns, rhs.csns ).isEquals();
     }
@@ -156,6 +159,7 @@
     {
         return new HashCodeBuilder( -33446267, -459427867 ).append( this.csns ).toHashCode();
     }
+    
 
     /**
      * Creates a deep copy of this vector and returns it.
@@ -166,6 +170,7 @@
         result.csns.putAll( this.csns );
         return result;
     }
+    
 
     public String toString()
     {



Mime
View raw message