[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/configuration/ConfigurationServiceImpl.java

emcho at dev.java.net emcho at dev.java.net
Tue Apr 17 14:13:36 CEST 2007


User: emcho   
Date: 2007-04-17 12:13:36+0000
Log:
 close output streams after writing xml files.

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/configuration/
==============================================================================

File [changed]: ConfigurationServiceImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/configuration/ConfigurationServiceImpl.java?r1=1.11&r2=1.12
Delta lines:  +3 -1
-------------------
--- ConfigurationServiceImpl.java	2007-01-14 17:05:43+0000	1.11
+++ ConfigurationServiceImpl.java	2007-04-17 12:13:33+0000	1.12
@@ -517,8 +517,10 @@
                                   newlyAddedProperties);
 
         //write the file.
+        OutputStream stream = new FileOutputStream(getConfigurationFile());
         XMLUtils.indentedWriteXML(
-            propertiesDocument, new FileOutputStream(getConfigurationFile()));
+            propertiesDocument, stream);
+        stream.close();
     }
 
     /**




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list