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/gui/ConfPane.java

    r25163 r25635  
    8181
    8282    protected JPanel main_contentPane = null;
    83     public Hashtable conf_table;
     83    public Hashtable<Object, Object> conf_table;
    8484
    8585    /** The panel that contains a Conf_list */
     
    158158
    159159    //An array to store all the details in the build.properties file
    160     private ArrayList conf_array;
     160    private ArrayList<String> conf_array;
    161161
    162162    //Site configuration
     
    172172    public ConfPane()
    173173    {
    174         conf_table = new Hashtable();
     174        conf_table = new Hashtable<Object, Object>();
    175175        // create all the control button panes
    176176        inner_control_pane = new JPanel();
     
    652652    {
    653653        String new_string;
    654         Enumeration keys = conf_table.keys();
     654        Enumeration<Object> keys = conf_table.keys();
    655655        String key;
    656656        String value;
     
    662662            for (int j = 0; j < conf_array.size(); j++)
    663663            {
    664                 if (((String) conf_array.get(j)).startsWith(key.toLowerCase()))
     664                if (conf_array.get(j).startsWith(key.toLowerCase()))
    665665                {
    666666                    new_string = key + "=" + value;
     
    719719         * store all the details from the build.properties
    720720         */
    721         conf_array = new ArrayList();
     721        conf_array = new ArrayList<String>();
    722722        conf_setting = new Object[rowLength][colLength];
    723723        try
Note: See TracChangeset for help on using the changeset viewer.