directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r471321 - in /directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common: CSNFactory.java CSNVector.java Constants.java SimpleUUID.java
Date Sun, 05 Nov 2006 01:34:47 GMT
Author: akarasulu
Date: Sat Nov  4 17:34:46 2006
New Revision: 471321

URL: http://svn.apache.org/viewvc?view=rev&rev=471321
Log:
quick code pass with cast cleanup and @author tag for director dev list

Modified:
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNFactory.java
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Constants.java
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/SimpleUUID.java

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNFactory.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNFactory.java?view=diff&rev=471321&r1=471320&r2=471321
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNFactory.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNFactory.java
Sat Nov  4 17:34:46 2006
@@ -23,6 +23,7 @@
 /**
  * Generates a new {@link CSN}.
  * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public interface CSNFactory
 {

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java?view=diff&rev=471321&r1=471320&r2=471321
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/CSNVector.java
Sat Nov  4 17:34:46 2006
@@ -61,23 +61,23 @@
 
     public void setAllCSN( CSNVector uv )
     {
-        Iterator i = uv.csns.values().iterator();
+        Iterator<CSN> i = uv.csns.values().iterator();
         while ( i.hasNext() )
         {
-            setCSN( ( CSN ) i.next() );
+            setCSN( i.next() );
         }
     }
 
 
     public CSN getCSN( ReplicaId replicaId )
     {
-        return ( CSN ) csns.get( replicaId );
+        return csns.get( replicaId );
     }
 
 
     public CSN removeCSN( ReplicaId replicaId )
     {
-        return ( CSN ) csns.remove( replicaId );
+        return csns.remove( replicaId );
     }
 
 

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Constants.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Constants.java?view=diff&rev=471321&r1=471320&r2=471321
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Constants.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Constants.java
Sat Nov  4 17:34:46 2006
@@ -54,7 +54,7 @@
                 Attributes entry = result.getAttributes();
                 Attribute deleted = entry.get( ENTRY_DELETED );
                 Object value = deleted == null ? null : deleted.get();
-                return ( value == null || !"true".equals( value.toString() ) );
+                return ( value == null || !"true".equalsIgnoreCase( value.toString() ) );
             }
 
             return true;

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/SimpleUUID.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/SimpleUUID.java?view=diff&rev=471321&r1=471320&r2=471321
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/SimpleUUID.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/SimpleUUID.java
Sat Nov  4 17:34:46 2006
@@ -24,7 +24,6 @@
 
 
 /**
- * 
  * TODO SimpleUUID.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>



Mime
View raw message