commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r515354 - /jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
Date Tue, 06 Mar 2007 23:25:05 GMT
Author: tcurdt
Date: Tue Mar  6 15:25:03 2007
New Revision: 515354

URL: http://svn.apache.org/viewvc?view=rev&rev=515354
Log:
use the stream that gets closed


Modified:
    jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java

Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java?view=diff&rev=515354&r1=515353&r2=515354
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
(original)
+++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
Tue Mar  6 15:25:03 2007
@@ -111,7 +111,7 @@
                 FileInputStream is = null;
                 try {
                 	is = new FileInputStream(file);
-                    final byte[] bytes = IOUtils.toByteArray(new FileInputStream(file));
+                    final byte[] bytes = IOUtils.toByteArray(is);
                     final String resourceName = getResourceNameFromRelativeFileName(ClassUtils.relative(pObserver.getRootDirectory(),
file));
                     store.write(resourceName, bytes);
                 } catch(final Exception e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message