Ignore:
Timestamp:
02/12/14 15:08:26 (10 years ago)
Author:
pharms
Message:
  • removed find bugs warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogParser.java

    r1354 r1379  
    249249            for (String fileName : parseParams.get("idReplacements")) { 
    250250                Properties props = new Properties(); 
     251                FileInputStream stream = null; 
    251252                try { 
    252                     props.load(new FileInputStream(new File(fileName))); 
     253                    stream = new FileInputStream(new File(fileName)); 
     254                    props.load(stream); 
    253255                } 
    254256                catch (FileNotFoundException e) { 
     
    257259                catch (IOException e) { 
    258260                    throw new SAXException("error reading file " + fileName, e); 
     261                } 
     262                finally { 
     263                    if (stream != null) { 
     264                        try { 
     265                            stream.close(); 
     266                        } 
     267                        catch (IOException e) { 
     268                            // ignore 
     269                        } 
     270                    } 
    259271                } 
    260272                 
Note: See TracChangeset for help on using the changeset viewer.