You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2014/02/21 08:37:46 UTC

[21/31] git commit: Don't traverse the parents twice

Don't traverse the parents twice


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/d3ff4310
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/d3ff4310
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/d3ff4310

Branch: refs/heads/master
Commit: d3ff431050a1fdb37097a75b55137d85fb8d68ce
Parents: b0dea0e
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Feb 18 14:57:28 2014 +0200
Committer: Igor Vaynberg <ig...@gmail.com>
Committed: Thu Feb 20 23:37:16 2014 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/wicket/markup/html/border/Border.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d3ff4310/wicket-core/src/main/java/org/apache/wicket/markup/html/border/Border.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/border/Border.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/border/Border.java
index fb146a7..39e0576 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/border/Border.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/border/Border.java
@@ -540,8 +540,8 @@ public abstract class Border extends WebMarkupContainer implements IComponentRes
 		@Override
 		public IMarkupFragment getDequeueMarkup()
 		{
-			Border border=findParent(Border.class);
-			IMarkupFragment fragment=findParent(Border.class).getMarkup();
+			Border border = findParent(Border.class);
+			IMarkupFragment fragment = border.getMarkup();
 			/*
 			 * we want to get the contents of the border here (the markup that
 			 * is represented by the body tag) to do this we need to strip the