You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2005/09/12 16:15:03 UTC

svn commit: r280344 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java

Author: cziegeler
Date: Mon Sep 12 07:15:00 2005
New Revision: 280344

URL: http://svn.apache.org/viewcvs?rev=280344&view=rev
Log:
Convert only once

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?rev=280344&r1=280343&r2=280344&view=diff
==============================================================================
--- 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 Mon Sep 12 07:15:00 2005
@@ -63,7 +63,7 @@
     private ComponentManager manager;
 
     /** The value of the 'pass-through' attribute */
-    private final boolean passThrough;
+    private final Boolean passThrough;
 
     public MountNode(VariableResolver prefix,
                      VariableResolver source,
@@ -74,7 +74,7 @@
         this.source = source;
         this.parentProcessor = parentProcessor;
         this.checkReload = checkReload;
-        this.passThrough = passThrough;
+        this.passThrough = BooleanUtils.toBooleanObject(passThrough);
     }
 
     public void compose(ComponentManager manager) throws ComponentException {
@@ -98,7 +98,7 @@
         String oldURI    = env.getURI();
         String oldContext   = env.getContext();
         Object oldPassThrough = env.getAttribute(COCOON_PASS_THROUGH);
-        env.setAttribute(COCOON_PASS_THROUGH, BooleanUtils.toBooleanObject(passThrough));
+        env.setAttribute(COCOON_PASS_THROUGH, this.passThrough);
 
         boolean pipelineWasBuilt = false;