You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2018/04/09 20:19:47 UTC

[archiva-redback-components-spring-taskqueue] 27/37: generics

This is an automated email from the ASF dual-hosted git repository.

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-spring-taskqueue.git

commit fa2dc281064533de96510fccfdecb261651008f2
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Tue Dec 10 01:22:22 2013 +0000

    generics
    
    git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1549730 13f79535-47bb-0310-9956-ffa450edef68
---
 .../archiva/redback/components/taskqueue/DefaultTaskQueue.java      | 6 +++---
 .../org/apache/archiva/redback/components/taskqueue/TaskQueue.java  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/DefaultTaskQueue.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/DefaultTaskQueue.java
index 2ab4161..d85ae73 100644
--- a/src/main/java/org/apache/archiva/redback/components/taskqueue/DefaultTaskQueue.java
+++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/DefaultTaskQueue.java
@@ -95,9 +95,9 @@ public class DefaultTaskQueue
             Collection<Task> toBeRemoved =
                 taskViabilityEvaluator.evaluate( Collections.unmodifiableCollection( queue ) );
 
-            for ( Iterator<Task> it2 = toBeRemoved.iterator(); it2.hasNext(); )
+            for ( Iterator<Task> it = toBeRemoved.iterator(); it.hasNext(); )
             {
-                Task t = it2.next();
+                Task t = it.next();
 
                 queue.remove( t );
             }
@@ -152,7 +152,7 @@ public class DefaultTaskQueue
         return queue.remove( task );
     }
 
-    public boolean removeAll( List tasks )
+    public boolean removeAll( List<Task> tasks )
         throws ClassCastException, NullPointerException
     {
         return queue.removeAll( tasks );
diff --git a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java
index 0f642fa..8b5794f 100644
--- a/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java
+++ b/src/main/java/org/apache/archiva/redback/components/taskqueue/TaskQueue.java
@@ -49,14 +49,14 @@ public interface TaskQueue
     boolean remove( Task task )
         throws ClassCastException, NullPointerException;
 
-    boolean removeAll( List tasks )
+    boolean removeAll( List<Task> tasks )
         throws ClassCastException, NullPointerException;
 
     // ----------------------------------------------------------------------
     // Queue Inspection
     // ----------------------------------------------------------------------
 
-    List getQueueSnapshot()
+    List<Task> getQueueSnapshot()
         throws TaskQueueException;
 
     /**

-- 
To stop receiving notification emails like this one, please contact
martin_s@apache.org.