Ignore:
Timestamp:
2012-05-22T13:01:04+12:00 (12 years ago)
Author:
sjm84
Message:

Fixing Greenstone 3's use (or lack thereof) of generics, this was done automatically so we may want to change it over time. This change will also auto-format any files that have not already been formatted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/admin/guiext/CommandStep.java

    r21919 r25635  
    2727public class CommandStep extends Step
    2828{
    29     protected ArrayList _commandsAndCallbacks = new ArrayList();
     29    protected ArrayList<Runnable> _commandsAndCallbacks = new ArrayList<Runnable>();
    3030    protected LoggedMessageArea _messageArea = new LoggedMessageArea(this.getClass());
    3131    protected int _threadCount = -1;
     
    8585
    8686        _threadCount = 0;
    87         Thread newThread = new Thread((Runnable)_commandsAndCallbacks.get(0));
     87        Thread newThread = new Thread(_commandsAndCallbacks.get(0));
    8888        newThread.start();
    8989    }
     
    106106
    107107    if(_threadCount < _commandsAndCallbacks.size()){
    108         Thread newThread = new Thread((Runnable)_commandsAndCallbacks.get(_threadCount));
     108        Thread newThread = new Thread(_commandsAndCallbacks.get(_threadCount));
    109109        newThread.start();
    110110    }
Note: See TracChangeset for help on using the changeset viewer.