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

    r24993 r25635  
    292292        logger.debug("metadata response = " + this.converter.getPrettyString(metadata_response));
    293293        NodeList coll_responses = metadata_response.getElementsByTagName(GSXML.RESPONSE_ELEM);
    294         ArrayList valid_colls = new ArrayList();
    295         ArrayList valid_coll_names = new ArrayList();
     294        ArrayList<String> valid_colls = new ArrayList<String>();
     295        ArrayList<String> valid_coll_names = new ArrayList<String>();
    296296        for (int i = 0; i < coll_responses.getLength(); i++)
    297297        {
     
    317317        // ids no all has the list without 'all' option.
    318318        this.coll_ids_list_no_all = new String[1];
    319         this.coll_ids_list_no_all = (String[]) valid_colls.toArray(coll_ids_list_no_all);
     319        this.coll_ids_list_no_all = valid_colls.toArray(coll_ids_list_no_all);
    320320
    321321        valid_colls.add(0, "all");
     
    323323        this.coll_ids_list = new String[1];
    324324        this.coll_names_list = new String[1];
    325         this.coll_ids_list = (String[]) valid_colls.toArray(coll_ids_list);
    326         this.coll_names_list = (String[]) valid_coll_names.toArray(coll_names_list);
     325        this.coll_ids_list = valid_colls.toArray(coll_ids_list);
     326        this.coll_names_list = valid_coll_names.toArray(coll_names_list);
    327327        return true;
    328328    }
     
    361361
    362362        // organise the nodes into collection lists
    363         HashMap coll_map = new HashMap();
     363        HashMap<String, Node> coll_map = new HashMap<String, Node>();
    364364
    365365        for (int i = 0; i < query_doc_list.getLength(); i++)
Note: See TracChangeset for help on using the changeset viewer.