Finalize calculate method
[jalview.git] / src / jalview / analysis / AAFrequency.java
index 55447d3..461b545 100755 (executable)
@@ -43,7 +43,7 @@ public class AAFrequency
     * the values being the count of each residue in that column.\r
     * This class is used extensively in calculating alignment colourschemes\r
     * that depend on the amount of conservation in each alignment column. */\r
-    public static Vector calculate(Vector sequences, int start, int end)\r
+    public static final Vector calculate(Vector sequences, int start, int end)\r
     {\r
       Vector result = new Vector();\r
       Hashtable residueHash;\r
@@ -66,7 +66,7 @@ public class AAFrequency
 \r
                     if (sequence.length() > i)\r
                     {\r
-                        res = Character.toString(Character.toUpperCase(sequence.charAt(i)));\r
+                        res = String.valueOf(Character.toUpperCase(sequence.charAt(i)));\r
 \r
                         if (jalview.util.Comparison.isGap(res.charAt(0)))\r
                         {\r