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/gsdl3/core/Receptionist.java

    r25301 r25635  
    3131
    3232    /** the set up variables */
    33     protected HashMap config_params = null;
     33    protected HashMap<String, Comparable> config_params = null;
    3434    /** container Document to create XML Nodes */
    3535    protected Document doc = null;
     
    4242
    4343    /** the list of actions */
    44     protected HashMap action_map = null;
     44    protected HashMap<String, Action> action_map = null;
    4545
    4646    /** the list of params */
     
    4949
    5050    /** the list of interfaces this is based on */
    51     protected ArrayList base_interfaces = null;
     51    protected ArrayList<String> base_interfaces = null;
    5252
    5353    public Receptionist()
     
    5555        this.converter = new XMLConverter();
    5656        this.doc = this.converter.newDOM();
    57         this.action_map = new HashMap();
     57        this.action_map = new HashMap<String, Action>();
    5858    }
    5959
     
    6767    }
    6868
    69     public void setConfigParams(HashMap params)
     69    public void setConfigParams(HashMap<String, Comparable> params)
    7070    {
    7171        this.config_params = params;
    7272    }
    7373
    74     public HashMap getConfigParams()
     74    public HashMap<String, Comparable> getConfigParams()
    7575    {
    7676        return this.config_params;
     
    211211
    212212        // find the  appropriate action
    213         Action a = (Action) this.action_map.get(action);
     213        Action a = this.action_map.get(action);
    214214
    215215        String action_name = null;
     
    313313            if (base_interfaces == null)
    314314            {
    315                 base_interfaces = new ArrayList();
     315                base_interfaces = new ArrayList<String>();
    316316            }
    317317            base_interfaces.add(base_interface);
Note: See TracChangeset for help on using the changeset viewer.