X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FGraduatedColor.java;h=8a55f7949d95247cb6b0ba241dd33ff0e88e2fe2;hb=bb9e5fdd698bc2ccfbe37293f4d25178c407c811;hp=e8bf48338624b6a6fdae367c68e3c79805cf8f51;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/jalview/schemes/GraduatedColor.java b/src/jalview/schemes/GraduatedColor.java index e8bf483..8a55f79 100644 --- a/src/jalview/schemes/GraduatedColor.java +++ b/src/jalview/schemes/GraduatedColor.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -145,7 +145,7 @@ public class GraduatedColor public boolean isColored(SequenceFeature feature) { float val = feature.getScore(); - if (val == Float.NaN) + if (Float.isNaN(val)) { return true; } @@ -153,7 +153,7 @@ public class GraduatedColor { return true; } - if (this.thrsh == Float.NaN) + if (Float.isNaN(this.thrsh)) { return true; } @@ -211,7 +211,7 @@ public class GraduatedColor return getMaxColor(); } float scr = feature.getScore(); - if (scr == Float.NaN) + if (Float.isNaN(scr)) { return getMinColor(); }