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/Command.java

    r22185 r25635  
    1515public class Command implements Runnable
    1616{
    17     HashMap _osCommands = new HashMap();
     17    HashMap<String, String> _osCommands = new HashMap<String, String>();
    1818    CommandStep _parent = null;
    1919
     
    133133    String currentos = System.getProperty("os.name");
    134134
    135     String command = (String)_osCommands.get(currentos);
     135    String command = _osCommands.get(currentos);
    136136    if(command != null){
    137137        return command;
     
    139139   
    140140    if(currentos.contains("Windows")){
    141         command = (String)_osCommands.get("Windows");
     141        command = _osCommands.get("Windows");
    142142       
    143143        if(command != null){
     
    145145        }   
    146146    }
    147     return (String)_osCommands.get("default");
     147    return _osCommands.get("default");
    148148    }
    149149
Note: See TracChangeset for help on using the changeset viewer.