cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123905 - /cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java
Date Sun, 02 Jan 2005 22:14:39 GMT
Author: antonio
Date: Sun Jan  2 14:14:38 2005
New Revision: 123905

URL: http://svn.apache.org/viewcvs?view=rev&rev=123905
Log:
One close should be enough.
Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java?view=diff&rev=123905&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java&r1=123904&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java&r2=123905
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/EsqlHelper.java
Sun Jan  2 14:14:38 2005
@@ -33,7 +33,7 @@
  *
  * based on the orginal esql.xsl
  * @author <a href="mailto:tcurdt@dff.st">Torsten Curdt</a>
- * @version CVS $Id: EsqlHelper.java,v 1.4 2004/03/05 13:01:53 bdelacretaz Exp $
+ * @version CVS $Id$
  */
 
 public class EsqlHelper {
@@ -73,8 +73,6 @@
                 buffer = new byte[length];
                 reader.read(buffer);
                 reader.close();
-                if (reader != null)
-                    reader.close();
                 if (buffer == null)
                     return null;
                 return buffer;
@@ -115,8 +113,6 @@
             buffer = new byte[length];
             reader.read(buffer);
             reader.close();
-            if (reader != null)
-                reader.close();
             if (buffer != null)
                 result = buffer;
             else if (defaultString != null && !defaultString.equals("_null_"))

Mime
View raw message