You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2015/02/02 08:36:03 UTC
tapestry-5 git commit: TAP5-2444: Reduce usage of PerthreadMap in
org.apache.tapestry5.corelib.base.AbstractConditional.beginRender(MarkupWriter)
Repository: tapestry-5
Updated Branches:
refs/heads/master 15a027658 -> 27bf34c4b
TAP5-2444: Reduce usage of PerthreadMap in org.apache.tapestry5.corelib.base.AbstractConditional.beginRender(MarkupWriter)
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/27bf34c4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/27bf34c4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/27bf34c4
Branch: refs/heads/master
Commit: 27bf34c4b972b7d9412018e8e66a2234ba88b968
Parents: 15a0276
Author: Michael Mikhulya <m....@gmail.com>
Authored: Fri Jan 30 17:04:11 2015 +0300
Committer: Jochen Kemnade <jo...@eddyson.de>
Committed: Fri Jan 30 16:43:21 2015 +0100
----------------------------------------------------------------------
.../org/apache/tapestry5/corelib/base/AbstractConditional.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/27bf34c4/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractConditional.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractConditional.java b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractConditional.java
index f059d12..ceae009 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractConditional.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractConditional.java
@@ -64,10 +64,9 @@ public abstract class AbstractConditional
String elementName = resources.getElementName();
- renderTag = enabled && elementName != null;
-
- if (renderTag)
+ if (enabled && elementName != null)
{
+ renderTag = true;
writer.element(elementName);
resources.renderInformalParameters(writer);
}