X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FComparison.java;h=fabfbff6d15915951891ca72b8a91f5740752724;hb=bd306b69256571ae575562d3079c842fa3be43f5;hp=0d945ac22f85bb69c1e18ce0b4d93840c5864b8b;hpb=9e97e05a07a7b5b58b54431325c663f2df31cd06;p=jalview.git diff --git a/src/jalview/util/Comparison.java b/src/jalview/util/Comparison.java index 0d945ac..fabfbff 100644 --- a/src/jalview/util/Comparison.java +++ b/src/jalview/util/Comparison.java @@ -256,7 +256,7 @@ public class Comparison */ public static final boolean isGap(char c) { - return (c == GAP_DASH || c == GAP_DOT || c == GAP_SPACE) ? true : false; + return (c == GAP_DASH || c == GAP_DOT || c == GAP_SPACE); } /** @@ -268,7 +268,7 @@ public class Comparison */ public static final boolean isNucleotide(SequenceI seq) { - if (seq==null) + if (seq == null) { return false; } @@ -297,9 +297,10 @@ public class Comparison * Check for nucleotide count > 85% of total count (in a form that evades * int / float conversion or divide by zero). */ - if ((ntCount+nCount) * 100 > EIGHTY_FIVE * (ntCount + aaCount)) + if ((ntCount + nCount) * 100 > EIGHTY_FIVE * (ntCount + aaCount)) { - return ntCount>0; // all N is considered protein. Could use a threshold here too + return ntCount > 0; // all N is considered protein. Could use a threshold + // here too } else {