From 36a2657b35e7ffb32352485538d1ddd725c409fa Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 26 Oct 2017 16:12:17 +0100 Subject: [PATCH] small name fixes in TreeBuilder --- src/jalview/analysis/TreeBuilder.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/jalview/analysis/TreeBuilder.java b/src/jalview/analysis/TreeBuilder.java index 9aa1790..36a8caf 100644 --- a/src/jalview/analysis/TreeBuilder.java +++ b/src/jalview/analysis/TreeBuilder.java @@ -67,7 +67,7 @@ public abstract class TreeBuilder double maxDistValue; - double maxheight; + double maxHeight; int ycount; @@ -125,20 +125,20 @@ public abstract class TreeBuilder { if (nd == null) { - return maxheight; + return maxHeight; } if ((nd.left() == null) && (nd.right() == null)) { nd.height = ((SequenceNode) nd.parent()).height + nd.dist; - if (nd.height > maxheight) + if (nd.height > maxHeight) { return nd.height; } else { - return maxheight; + return maxHeight; } } else @@ -149,15 +149,15 @@ public abstract class TreeBuilder } else { - maxheight = 0; + maxHeight = 0; nd.height = (float) 0.0; } - maxheight = findHeight((SequenceNode) (nd.left())); - maxheight = findHeight((SequenceNode) (nd.right())); + maxHeight = findHeight((SequenceNode) (nd.left())); + maxHeight = findHeight((SequenceNode) (nd.right())); } - return maxheight; + return maxHeight; } /** -- 1.7.10.2