cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123776 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java
Date Fri, 31 Dec 2004 09:17:49 GMT
Author: antonio
Date: Fri Dec 31 01:17:48 2004
New Revision: 123776

URL: http://svn.apache.org/viewcvs?view=rev&rev=123776
Log:
Don't create a new Boolean
Modified:
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java?view=diff&rev=123776&p1=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java&r1=123775&p2=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java&r2=123776
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/InputModuleAction.java
Fri Dec 31 01:17:48 2004
@@ -66,7 +66,7 @@
  * @see org.apache.cocoon.components.modules.input.InputModule
  * 
  * @author <a href="mailto:haul@apache.org">Christian Haul</a>
- * @version CVS $Id: InputModuleAction.java,v 1.6 2004/04/27 22:25:29 haul Exp $
+ * @version CVS $Id$
  */
 public class InputModuleAction extends ConfigurableServiceableAction implements ThreadSafe
{
 
@@ -122,10 +122,8 @@
      */
     public void configure(Configuration conf) throws ConfigurationException {
         super.configure(conf);
-        boolean result = false;
         String tmp = (String) this.settings.get("single-value", "false");
-        result = BooleanUtils.toBoolean(tmp);
-        this.settings.put("single-value", new Boolean(result));
+        this.settings.put("single-value", BooleanUtils.toBooleanObject(tmp));
     }
 
 }

Mime
View raw message