summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/node-impl/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-12-23 13:04:47 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-12-23 13:04:47 +0000
commit88d884f45064bf348a986ab456b59d738c145deb (patch)
tree7ac6a2c78a3ddb966d7d5dc0206ebe41da255aaf /sca-java-2.x/trunk/modules/node-impl/src
parent47140fa8d10c952f94c58116973904a4e38ef271 (diff)
Close input stream when reading is finished
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1052255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-impl/src')
-rw-r--r--sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java b/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java
index f591a4ea68..27c56dc6ec 100644
--- a/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java
+++ b/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java
@@ -66,6 +66,7 @@ public class NodeConfigurationProcessorTestCase {
XMLStreamReader reader = xmlInputFactory.createXMLStreamReader(is);
reader.nextTag();
NodeConfiguration config = (NodeConfiguration) processor.read(reader, context);
+ is.close();
StringWriter sw = new StringWriter();
XMLOutputFactory xmlOutputFactory = factories.getFactory(XMLOutputFactory.class);
xmlOutputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);