JAL-2844 partitioning code made slightly clearer
[jalview.git] / forester / java / src / org / forester / tools / TreeSplitMatrix.java
index d1e015b..7b00eb2 100644 (file)
@@ -5,7 +5,7 @@
 // Copyright (C) 2008-2009 Christian M. Zmasek
 // Copyright (C) 2008-2009 Burnham Institute for Medical Research
 // All rights reserved
-// 
+//
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 // Lesser General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 //
 // Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
 
 package org.forester.tools;
 
@@ -68,8 +68,8 @@ public class TreeSplitMatrix {
     /**
      * If strict is true, target nodes (all external nodes of the phylogeny for
      * which support values are to be calculated) is not used for anything during construction.
-     * 
-     * 
+     *
+     *
      * @param target
      * @param evaluator
      * @param strict
@@ -150,7 +150,7 @@ public class TreeSplitMatrix {
         if ( q_counts != counts ) {
             positive_matches = false;
         }
-        if ( q_counts != keySet().size() - counts ) {
+        if ( q_counts != ( keySet().size() - counts ) ) {
             negative_matches = false;
         }
         if ( !positive_matches && !negative_matches ) {