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/service/AbstractTextSearch.java

    r24394 r25635  
    105105        Element index_sub_list = (Element)GSXML.getChildByTagName(this.config_info, INDEX_SUBCOLLECTION_ELEM+GSXML.LIST_MODIFIER);
    106106        if (index_sub_list == null) return true; // processed, just not a very interesting result
    107         ArrayList index_sub_ids = new ArrayList();
    108         ArrayList index_sub_names = new ArrayList();
     107        ArrayList<String> index_sub_ids = new ArrayList<String>();
     108        ArrayList<String> index_sub_names = new ArrayList<String>();
    109109        getIndexSubcollectionData(index_sub_ids, index_sub_names, lang);
    110110        String param_type = GSXML.PARAM_TYPE_ENUM_SINGLE;
     
    122122        Element index_lang_list = (Element)GSXML.getChildByTagName(this.config_info, INDEX_LANGUAGE_ELEM+GSXML.LIST_MODIFIER);
    123123            if (index_lang_list == null) return true; // processed, just not a very interesting result
    124         ArrayList index_lang_ids = new ArrayList();
    125         ArrayList index_lang_names = new ArrayList();
     124        ArrayList<String> index_lang_ids = new ArrayList<String>();
     125        ArrayList<String> index_lang_names = new ArrayList<String>();
    126126        getIndexLanguageData(index_lang_ids, index_lang_names, lang);
    127127        String param_type = GSXML.PARAM_TYPE_ENUM_SINGLE;
     
    150150     * might be implemented by subclass
    151151     */
    152     protected void getIndexSubcollectionData(ArrayList index_ids, ArrayList index_names, String lang){}
     152    protected void getIndexSubcollectionData(ArrayList<String> index_ids, ArrayList<String> index_names, String lang){}
    153153   
    154154    /** get the details about the indexes available
    155155     * might be implemented by subclass
    156156     */
    157     protected void getIndexLanguageData(ArrayList index_ids, ArrayList index_names, String lang){}
     157    protected void getIndexLanguageData(ArrayList<String> index_ids, ArrayList<String> index_names, String lang){}
    158158 
    159159
Note: See TracChangeset for help on using the changeset viewer.