commit | fa2dc281064533de96510fccfdecb261651008f2 | [log] [tgz] |
---|---|---|
author | Olivier Lamy <olamy@apache.org> | Tue Dec 10 01:22:22 2013 +0000 |
committer | Olivier Lamy <olamy@apache.org> | Tue Dec 10 01:22:22 2013 +0000 |
tree | 8293e20d4c2db05a27bb330edb05333bddc29f9e | |
parent | 7ea4707cb10b629664771cdb4a98cde258afba07 [diff] |
generics git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1549730 13f79535-47bb-0310-9956-ffa450edef68
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 @@ 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 @@ 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 @@ 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; /**