Author: richard.opalka(a)jboss.com
Date: 2008-09-29 09:23:16 -0400 (Mon, 29 Sep 2008)
New Revision: 8285
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
[JBWS-2325] fixing issue
Modified: common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-09-29 11:55:34 UTC
(rev 8284)
+++ common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-09-29 13:23:16 UTC
(rev 8285)
@@ -157,6 +157,10 @@
{
throw new IOException(se.toString());
}
+ finally
+ {
+ xmlStream.close();
+ }
}
/** Parse the given input source and return the root Element
@@ -171,6 +175,19 @@
{
throw new IOException(se.toString());
}
+ finally
+ {
+ InputStream is = source.getByteStream();
+ if (is != null)
+ {
+ is.close();
+ }
+ Reader r = source.getCharacterStream();
+ if (r != null)
+ {
+ r.close();
+ }
+ }
}
/** Create an Element for a given name
Show replies by date