commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1171957 - /commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryLoader.java
Date Sat, 17 Sep 2011 12:04:56 GMT
Author: simonetripodi
Date: Sat Sep 17 12:04:56 2011
New Revision: 1171957

URL: http://svn.apache.org/viewvc?rev=1171957&view=rev
Log:
fixed Finbug warning, InputStream not closed

Modified:
    commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryLoader.java

Modified: commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryLoader.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryLoader.java?rev=1171957&r1=1171956&r2=1171957&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryLoader.java (original)
+++ commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryLoader.java Sat
Sep 17 12:04:56 2011
@@ -100,7 +100,11 @@ public class QueryLoader {
         }
 
         Properties props = new Properties();
-        props.load(in);
+        try {
+            props.load(in);
+        } finally {
+            in.close();
+        }
 
         // Copy to HashMap for better performance
 



Mime
View raw message