incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1412552 - /sling/trunk/bundles/extensions/settings/src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java
Date Thu, 22 Nov 2012 13:51:14 GMT
Author: bdelacretaz
Date: Thu Nov 22 13:51:14 2012
New Revision: 1412552

URL: http://svn.apache.org/viewvc?rev=1412552&view=rev
Log:
SLING-2673 - close fis stream

Modified:
    sling/trunk/bundles/extensions/settings/src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java

Modified: sling/trunk/bundles/extensions/settings/src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/settings/src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java?rev=1412552&r1=1412551&r2=1412552&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/settings/src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java
(original)
+++ sling/trunk/bundles/extensions/settings/src/main/java/org/apache/sling/settings/impl/SlingSettingsServiceImpl.java
Thu Nov 22 13:51:14 2012
@@ -212,8 +212,8 @@ public class SlingSettingsServiceImpl
                     if ( ois != null ) {
                         try { ois.close(); } catch ( final IOException ignore) {}
                     }
-                    if ( ois != null ) {
-                        try { ois.close(); } catch ( final IOException ignore) {}
+                    if ( fis != null ) {
+                        try { fis.close(); } catch ( final IOException ignore) {}
                     }
                 }
                 if ( optionsList != null ) {



Mime
View raw message