Revision: 7525
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7525&view=rev
Author:   dnaber
Date:     2012-06-26 21:39:17 +0000 (Tue, 26 Jun 2012)
Log Message:
-----------
undo parts of latest change, it broke the tests

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java        
2012-06-26 21:30:29 UTC (rev 7524)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java        
2012-06-26 21:39:17 UTC (rev 7525)
@@ -161,8 +161,9 @@
 
          final String qualifier = getQualifier(lang);
        
-    final FileInputStream fis = new FileInputStream(configFile);
+    FileInputStream fis = null;
     try {
+      fis = new FileInputStream(configFile);
       final Properties props = new Properties();
       props.load(fis);
 
@@ -190,7 +191,9 @@
     } catch (final FileNotFoundException e) {
       // file not found: okay, leave disabledRuleIds empty
     } finally {
-      fis.close();
+      if (fis != null) {
+        fis.close();
+      }
     }
   }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to