Skip to content
Permalink
Browse files
use diamond
  • Loading branch information
olamy committed Apr 5, 2014
1 parent c91b17b commit 592b9050e1200d7596e098dddea93ba888cb4ec6
Showing 3 changed files with 10 additions and 10 deletions.
@@ -43,13 +43,13 @@

private Logger logger = LoggerFactory.getLogger( getClass() );

private List<TaskEntryEvaluator> taskEntryEvaluators = new ArrayList<TaskEntryEvaluator>();
private List<TaskEntryEvaluator> taskEntryEvaluators = new ArrayList<>();

private List<TaskExitEvaluator> taskExitEvaluators = new ArrayList<TaskExitEvaluator>();
private List<TaskExitEvaluator> taskExitEvaluators = new ArrayList<>();

private List<TaskViabilityEvaluator> taskViabilityEvaluators = new ArrayList<TaskViabilityEvaluator>();
private List<TaskViabilityEvaluator> taskViabilityEvaluators = new ArrayList<>();

private BlockingQueue<Task> queue = new LinkedBlockingQueue<Task>();
private BlockingQueue<Task> queue = new LinkedBlockingQueue<>();

// ----------------------------------------------------------------------
// Component Lifecycle
@@ -32,18 +32,18 @@
*/
@Service( "taskViabilityEvaluator#build-project" )
public class BuildProjectTaskViabilityEvaluator
implements TaskViabilityEvaluator
implements TaskViabilityEvaluator<BuildProjectTask>
{
public Collection evaluate( Collection tasks )
public Collection<Task> evaluate( Collection<BuildProjectTask> tasks )
throws TaskQueueException
{
BuildProjectTask okTask = null;

List toBeRemoved = new ArrayList( tasks.size() );
List<Task> toBeRemoved = new ArrayList<>( tasks.size() );

for ( Iterator it = tasks.iterator(); it.hasNext(); )
for ( Iterator<BuildProjectTask> it = tasks.iterator(); it.hasNext(); )
{
BuildProjectTask buildProjectTask = (BuildProjectTask) it.next();
BuildProjectTask buildProjectTask = it.next();

if ( okTask == null )
{
@@ -147,7 +147,7 @@ public void testRemoveAll()

assertEquals( 2, taskQueue.getQueueSnapshot().size() );

List tasks = new ArrayList();
List<Task> tasks = new ArrayList<>();

tasks.add( firstTask );

0 comments on commit 592b905

Please sign in to comment.