cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r124652 - /cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java
Date Sat, 08 Jan 2005 07:38:45 GMT
Author: antonio
Date: Fri Jan  7 23:38:44 2005
New Revision: 124652

URL: http://svn.apache.org/viewcvs?view=rev&rev=124652
Log:
Remove unnecesary if()
Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java?view=diff&rev=124652&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java&r1=124651&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java&r2=124652
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/ant/DelayedFileOutputStream.java
Fri Jan  7 23:38:44 2005
@@ -28,7 +28,7 @@
  *   A output stream writing to a ByteArrayOutputStream, until FilOutputStream target is
defined.
  *
  * @author    huber@apache.org
- * @version CVS $Id: DelayedFileOutputStream.java,v 1.2 2004/03/05 10:07:25 bdelacretaz Exp
$
+ * @version CVS $Id$
  */
 public class DelayedFileOutputStream extends OutputStream {
     /**
@@ -175,20 +175,18 @@
         IOException ioexception = null;
 
         getTargetOutputStream();
-        
+
         // close baos
         try {
             if (baos != null) {
                 baos.close();
             }
         } catch (IOException ioe) {
-            if (ioexception == null) {
-                ioexception = ioe;
-            }
+            ioexception = ioe;
         } finally {
             baos = null;
         }
-        
+
         // close fos
         try {
             if (fos != null) {
@@ -227,9 +225,7 @@
                 baos.flush();
             }
         } catch (IOException ioe) {
-            if (ioexception == null) {
-                ioexception = ioe;
-            }
+            ioexception = ioe;
         }
 
         // flush fos

Mime
View raw message