Updated Branches:
  refs/heads/master 714a6027f -> b8627d043

TAP5-2148: VersionUtils should close the stream it opens


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/b8627d04
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/b8627d04
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/b8627d04

Branch: refs/heads/master
Commit: b8627d04393cafa4ccd43ab48271853d0c1351b2
Parents: 714a602
Author: Howard M. Lewis Ship <[email protected]>
Authored: Thu Jul 25 12:33:02 2013 -0700
Committer: Howard M. Lewis Ship <[email protected]>
Committed: Thu Jul 25 12:33:02 2013 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/tapestry5/VersionUtils.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b8627d04/tapestry-core/src/main/java/org/apache/tapestry5/VersionUtils.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/VersionUtils.java 
b/tapestry-core/src/main/java/org/apache/tapestry5/VersionUtils.java
index 3aae7b9..130ed31 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/VersionUtils.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/VersionUtils.java
@@ -1,4 +1,4 @@
-// Copyright 2007, 2008, 2011 The Apache Software Foundation
+// Copyright 2007-2013 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -54,6 +54,8 @@ public class VersionUtils
                 stream = new BufferedInputStream(stream);
 
                 properties.load(stream);
+
+                stream.close();
             }
             catch (IOException ex)
             {

Reply via email to