Changeset 744


Ignore:
Timestamp:
09/03/12 10:19:42 (12 years ago)
Author:
pharms
Message:
  • removed find bugs warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIElementFactory.java

    r739 r744  
    229229                        mappingsFile.getName().endsWith(".txt")) 
    230230                    { 
    231                         InputStream inStream; 
     231                        InputStream inStream = null; 
    232232                        try { 
    233233                            inStream = new FileInputStream(mappingsFile); 
    234234                            mappingsFromConfiguration.load(inStream); 
    235                             inStream.close(); 
    236235                        } 
    237236                        catch (FileNotFoundException e) { 
     
    243242                                ("could not read mapping configuration file " + mappingsFile, e); 
    244243                        } 
     244                        finally { 
     245                            if (inStream != null) { 
     246                                try { 
     247                                    inStream.close(); 
     248                                } 
     249                                catch (IOException e) { 
     250                                    // ignore 
     251                                } 
     252                            } 
     253                        } 
    245254                    } 
    246255                } 
Note: See TracChangeset for help on using the changeset viewer.