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/build/GS2PerlConstructor.java

    r25609 r25635  
    124124    {
    125125        sendMessage(new ConstructionEvent(this, GSStatus.INFO, "Collection construction: new collection."));
    126         Vector command = new Vector();
     126        Vector<String> command = new Vector<String>();
    127127        command.add("gs2_mkcol.pl");
    128128        command.add("-site");
     
    133133        command.add(this.collection_name);
    134134        String[] command_str = {};
    135         command_str = (String[]) command.toArray(command_str);
     135        command_str = command.toArray(command_str);
    136136        if (runPerlCommand(command_str))
    137137        {
     
    162162        command.add(this.collection_name);
    163163        String[] command_str = {};
    164         command_str = (String[]) command.toArray(command_str);
     164        command_str = command.toArray(command_str);
    165165
    166166        if (runPerlCommand(command_str))
     
    186186
    187187        String[] command_str = {};
    188         command_str = (String[]) command.toArray(command_str);
     188        command_str = command.toArray(command_str);
    189189
    190190        if (runPerlCommand(command_str))
     
    231231
    232232    /** extracts all the args from the xml and returns them in a Vector */
    233     protected Vector extractParameters(Element param_list)
    234     {
    235 
    236         Vector args = new Vector();
     233    protected Vector<String> extractParameters(Element param_list)
     234    {
     235
     236        Vector<String> args = new Vector<String>();
    237237        if (param_list == null)
    238238        {
Note: See TracChangeset for help on using the changeset viewer.