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

    r25303 r25635  
    340340    boolean want_info = false;
    341341
    342     ArrayList info_types=new ArrayList();
     342    ArrayList<String> info_types=new ArrayList<String>();
    343343    // The document structure information desired
    344344    boolean want_ancestors = false;
     
    416416       
    417417        for (int j=0; j<info_types.size(); j++) {
    418             String info_type = (String)info_types.get(j);
     418            String info_type = info_types.get(j);
    419419            String info_value = getStructureInfo(node_id, info_type);
    420420            if (info_value != null) {
     
    511511
    512512    // The metadata information required
    513     ArrayList metadata_names_list = new ArrayList();
     513    ArrayList<String> metadata_names_list = new ArrayList<String>();
    514514    boolean all_metadata = false;
    515515    // Process the request parameters
     
    619619                  boolean recursive)
    620620    {
    621     ArrayList child_ids = getChildrenIds(node_id);
     621    ArrayList<String> child_ids = getChildrenIds(node_id);
    622622    if (child_ids==null) return;
    623623    for (int i=0; i< child_ids.size(); i++) {
    624         String child_id = (String)child_ids.get(i);
     624        String child_id = child_ids.get(i);
    625625        Element child_elem;
    626626        if (isDocumentId(child_id)) {
     
    675675
    676676    /** returns the list of sibling ids, including the specified node_id */
    677     protected ArrayList getSiblingIds(String node_id) {
     677    protected ArrayList<String> getSiblingIds(String node_id) {
    678678    String parent_id = getParentId(node_id);
    679679    if (parent_id == null) {
     
    698698    abstract protected String getRootId(String node_id);
    699699    /** returns a list of the child ids in order, null if no children */
    700     abstract protected ArrayList getChildrenIds(String node_id);
     700    abstract protected ArrayList<String> getChildrenIds(String node_id);
    701701    /** returns the node id of the parent node, null if no parent */
    702702    abstract protected String getParentId(String node_id);
     
    715715    abstract protected Element getMetadataList(String node_id,
    716716                           boolean all_metadata,
    717                            ArrayList metadata_names);
     717                           ArrayList<String> metadata_names);
    718718
    719719    /** get the particular metadata (identified by the metadata name) for the classifier node node_id
Note: See TracChangeset for help on using the changeset viewer.