Revision: 19814
          http://sourceforge.net/p/gate/code/19814
Author:   markagreenwood
Date:     2016-11-28 07:11:11 +0000 (Mon, 28 Nov 2016)
Log Message:
-----------
ensure streams are properly closed

Modified Paths:
--------------
    
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/java/mark/chemistry/Tagger.java

Modified: 
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/java/mark/chemistry/Tagger.java
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/java/mark/chemistry/Tagger.java
    2016-11-28 07:02:22 UTC (rev 19813)
+++ 
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/java/mark/chemistry/Tagger.java
    2016-11-28 07:11:11 UTC (rev 19814)
@@ -155,9 +155,8 @@
     }
     elementSymbol = new ArrayList<String>();
     elementName = new ArrayList<String>();
-    try {
-      BufferedReader in = new BomStrippingInputStreamReader(
-              elementMapURL.openStream());
+    try (BufferedReader in = new BomStrippingInputStreamReader(
+              elementMapURL.openStream());) {      
       String symbol = in.readLine();
       while(symbol != null) {
         symbol = symbol.trim();

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


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to