cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123780 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java
Date Fri, 31 Dec 2004 10:31:20 GMT
Author: antonio
Date: Fri Dec 31 02:31:18 2004
New Revision: 123780

URL: http://svn.apache.org/viewcvs?view=rev&rev=123780
Log:
Don't create a new Boolean + fix typo
Modified:
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java?view=diff&rev=123780&p1=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java&r1=123779&p2=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java&r2=123780
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java
Fri Dec 31 02:31:18 2004
@@ -30,6 +30,7 @@
 import org.apache.cocoon.components.treeprocessor.TreeProcessor;
 import org.apache.cocoon.components.treeprocessor.variables.VariableResolver;
 import org.apache.cocoon.environment.Environment;
+import org.apache.commons.lang.BooleanUtils;
 
 /**
  *
@@ -40,10 +41,9 @@
 public class MountNode extends AbstractProcessingNode
                        implements Composable, Disposable {
 
-    /** The  key to get the pass_through value fron the Environment */
+    /** The key to get the pass_through value from the Environment */
     protected final static String COCOON_PASS_THROUGH = "COCOON_PASS_THROUGH";
 
-
     /** The 'uri-prefix' attribute */
     private final VariableResolver prefix;
 
@@ -98,7 +98,7 @@
         String oldURI    = env.getURI();
         String oldContext   = env.getContext();
         Object oldPassThrough = env.getAttribute(COCOON_PASS_THROUGH);
-        env.setAttribute(COCOON_PASS_THROUGH, new Boolean(passThrough));
+        env.setAttribute(COCOON_PASS_THROUGH, BooleanUtils.toBooleanObject(passThrough));
 
         try {
             env.changeContext(resolvedPrefix, resolvedSource);

Mime
View raw message