Changeset 17101 for gli

Show
Ignore:
Timestamp:
29.08.2008 14:58:25 (11 years ago)
Author:
davidb
Message:

Typcast added to assignment statement to keep Java 1.4 happy

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/metadata/DocXMLFileManager.java

    r17009 r17101  
    8787    String file = doc_xml_file_file.getAbsolutePath(); 
    8888 
     89    // Need to do typecasts in the following to keep Java 1.4 happy 
    8990    DocXMLFile doc_xml_file  
    90         = (filename_match.equals("docmets.xml")) ? new DocMetsXMLFile(file) : new DocGAFile(file); 
     91        = (filename_match.equals("docmets.xml"))  
     92        ? (DocXMLFile) new DocMetsXMLFile(file)  
     93        : (DocXMLFile) new DocGAFile(file); 
    9194 
    9295    try {