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/selfContained/FilesDocumentStream.java

    r3615 r25635  
    5454  implements DocumentStream {
    5555  /** the files we've found so far */
    56   Vector files = new Vector();
     56  Vector<String> files = new Vector<String>();
    5757  /** the directories we've found so far */
    58   Vector directories = new Vector();
     58  Vector<String> directories = new Vector<String>();
    5959
    6060  /**
     
    111111  protected void expandIfNecessary() {
    112112    while (directories.size() > 0) {
    113       String dirname = (String) directories.elementAt(0);
     113      String dirname = directories.elementAt(0);
    114114      directories.removeElement(dirname);
    115115      File dir = new File(dirname);
     
    144144    if (!hasNextDocument()) throw new Error("Doesn't have another Document");
    145145
    146     String filename = (String) files.elementAt(files.size() - 1);
     146    String filename = files.elementAt(files.size() - 1);
    147147    files.removeElementAt(files.size() - 1);
    148148    File file = new File(filename);
Note: See TracChangeset for help on using the changeset viewer.