X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FConservation.java;h=ff38c08303ef5798a804a8f1c5ab9107d7a7111f;hb=fc90b2a19f4827d0389c578c56105dc7e69e59ea;hp=279d3096b92dcd8a5919b6951ecf91cfef092a74;hpb=44028f5aa2642bf4be383d7ca48d2551d8a1a536;p=jalview.git diff --git a/src/jalview/analysis/Conservation.java b/src/jalview/analysis/Conservation.java index 279d309..ff38c08 100755 --- a/src/jalview/analysis/Conservation.java +++ b/src/jalview/analysis/Conservation.java @@ -698,7 +698,7 @@ public class Conservation max = Math.max(max, bigtot); - quality.addElement(new Double(bigtot)); + quality.addElement(Double.valueOf(bigtot)); } double newmax = -Double.MAX_VALUE; @@ -710,7 +710,7 @@ public class Conservation tmp = ((max - tmp) * (size - cons2GapCounts[j])) / size; // System.out.println(tmp+ " " + j); - quality.setElementAt(new Double(tmp), j); + quality.setElementAt(Double.valueOf(tmp), j); if (tmp > newmax) { @@ -724,8 +724,8 @@ public class Conservation /** * Complete the given consensus and quuality annotation rows. Note: currently - * this method will enlarge the given annotation row if it is too small, - * otherwise will leave its length unchanged. + * this method will reallocate the given annotation row if it is different to + * the calculated width, otherwise will leave its length unchanged. * * @param conservation * conservation annotation row @@ -757,7 +757,7 @@ public class Conservation float qmax = 0f; if (conservation != null && conservation.annotations != null - && conservation.annotations.length < alWidth) + && conservation.annotations.length != alWidth) { conservation.annotations = new Annotation[alWidth]; } @@ -766,7 +766,7 @@ public class Conservation { quality2.graphMax = (float) qualityMaximum; if (quality2.annotations != null - && quality2.annotations.length < alWidth) + && quality2.annotations.length != alWidth) { quality2.annotations = new Annotation[alWidth]; }