directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r687189 - /directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/
Date Tue, 19 Aug 2008 22:35:23 GMT
Author: akarasulu
Date: Tue Aug 19 15:35:22 2008
New Revision: 687189

URL: http://svn.apache.org/viewvc?rev=687189&view=rev
Log:
cleaning up cursor package which had useless imports and missing serializiation ids

Modified:
    directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorClosedException.java
    directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorIterator.java
    directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/EmptyCursor.java
    directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InconsistentCursorStateException.java
    directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InvalidCursorPositionException.java
    directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/ListCursor.java

Modified: directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorClosedException.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorClosedException.java?rev=687189&r1=687188&r2=687189&view=diff
==============================================================================
--- directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorClosedException.java
(original)
+++ directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorClosedException.java
Tue Aug 19 15:35:22 2008
@@ -28,6 +28,9 @@
  */
 public class CursorClosedException extends Exception
 {
+    private static final long serialVersionUID = -5723233489761854394L;
+
+
     public CursorClosedException()
     {
     }

Modified: directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorIterator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorIterator.java?rev=687189&r1=687188&r2=687189&view=diff
==============================================================================
--- directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorIterator.java
(original)
+++ directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/CursorIterator.java
Tue Aug 19 15:35:22 2008
@@ -36,7 +36,7 @@
     private boolean available;
 
 
-    public CursorIterator( Cursor cursor )
+    public CursorIterator( Cursor<E> cursor )
     {
         this.cursor = cursor;
         this.available = cursor.available();

Modified: directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/EmptyCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/EmptyCursor.java?rev=687189&r1=687188&r2=687189&view=diff
==============================================================================
--- directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/EmptyCursor.java
(original)
+++ directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/EmptyCursor.java
Tue Aug 19 15:35:22 2008
@@ -19,9 +19,6 @@
 package org.apache.directory.server.core.cursor;
 
 
-import java.util.Iterator;
-
-
 /**
  * An empty Cursor implementation.
  *

Modified: directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InconsistentCursorStateException.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InconsistentCursorStateException.java?rev=687189&r1=687188&r2=687189&view=diff
==============================================================================
--- directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InconsistentCursorStateException.java
(original)
+++ directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InconsistentCursorStateException.java
Tue Aug 19 15:35:22 2008
@@ -29,6 +29,9 @@
  */
 public class InconsistentCursorStateException extends Exception
 {
+    private static final long serialVersionUID = 6222645005251534704L;
+
+
     public InconsistentCursorStateException()
     {
     }

Modified: directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InvalidCursorPositionException.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InvalidCursorPositionException.java?rev=687189&r1=687188&r2=687189&view=diff
==============================================================================
--- directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InvalidCursorPositionException.java
(original)
+++ directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/InvalidCursorPositionException.java
Tue Aug 19 15:35:22 2008
@@ -28,6 +28,9 @@
  */
 public class InvalidCursorPositionException extends Exception
 {
+    private static final long serialVersionUID = 5730037129071653272L;
+
+
     public InvalidCursorPositionException ()
     {
     }

Modified: directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/ListCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/ListCursor.java?rev=687189&r1=687188&r2=687189&view=diff
==============================================================================
--- directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/ListCursor.java
(original)
+++ directory/apacheds/trunk/core-cursor/src/main/java/org/apache/directory/server/core/cursor/ListCursor.java
Tue Aug 19 15:35:22 2008
@@ -84,7 +84,7 @@
         else
         {
             //noinspection unchecked
-            this.list = Collections.EMPTY_LIST;
+            this.list = Collections.emptyList();
         }
 
         this.start = start;
@@ -171,16 +171,16 @@
     /**
      * Creates a new ListCursor without any elements.
      */
+    @SuppressWarnings("unchecked")
     public ListCursor()
     {
-        //noinspection unchecked
         this( null, 0, Collections.EMPTY_LIST, 0 );
     }
 
 
+    @SuppressWarnings("unchecked")
     public ListCursor( Comparator<E> comparator )
     {
-        //noinspection unchecked
         this( comparator, 0, Collections.EMPTY_LIST, 0 );
     }
 



Mime
View raw message