You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by il...@apache.org on 2003/01/06 16:05:49 UTC
cvs commit: xml-commons/java/external/src/javax/xml/parsers FactoryFinder.java
ilene 2003/01/06 07:05:49
Modified: java/external/src/javax/xml/transform Tag: RIVERCOURT1
FactoryFinder.java
java/external/src/javax/xml/parsers Tag: RIVERCOURT1
FactoryFinder.java
Log:
Close FileInputStream for jaxp.properties file after properties are loaded.
Revision Changes Path
No revision
No revision
1.7.2.3 +1 -0 xml-commons/java/external/src/javax/xml/transform/FactoryFinder.java
Index: FactoryFinder.java
===================================================================
RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/FactoryFinder.java,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -u -r1.7.2.2 -r1.7.2.3
--- FactoryFinder.java 17 Sep 2002 14:55:48 -0000 1.7.2.2
+++ FactoryFinder.java 6 Jan 2003 15:05:49 -0000 1.7.2.3
@@ -154,6 +154,7 @@
FileInputStream fis = ss.getFileInputStream(new File(configFile));
Properties props = new Properties();
props.load(fis);
+ fis.close();
String factoryClassName = props.getProperty(factoryId);
if (factoryClassName != null) {
dPrint("found in jaxp.properties, value=" + factoryClassName);
No revision
No revision
1.7.4.3 +1 -0 xml-commons/java/external/src/javax/xml/parsers/FactoryFinder.java
Index: FactoryFinder.java
===================================================================
RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/FactoryFinder.java,v
retrieving revision 1.7.4.2
retrieving revision 1.7.4.3
diff -u -r1.7.4.2 -r1.7.4.3
--- FactoryFinder.java 17 Sep 2002 14:45:41 -0000 1.7.4.2
+++ FactoryFinder.java 6 Jan 2003 15:05:49 -0000 1.7.4.3
@@ -154,6 +154,7 @@
FileInputStream fis = ss.getFileInputStream(new File(configFile));
Properties props = new Properties();
props.load(fis);
+ fis.close();
String factoryClassName = props.getProperty(factoryId);
if (factoryClassName != null) {
dPrint("found in jaxp.properties, value=" + factoryClassName);