JAL-1807
[jalview.git] / src / jalview / analysis / StructureFrequency.java
index d7d07bc..d77c5ac 100644 (file)
@@ -421,7 +421,7 @@ public class StructureFrequency
          * ((c == 0) ? "" : "; ") + alphabet[c] + " " + ((int) tval) + "%"; } }
          * else {
          */
-        int[][] ca = new int[625][];
+        int[][] ca = javajs.util.AU.newInt2(625);// BH new int[625][];
         float[] vl = new float[625];
         int x = 0;
         for (int c = 65; c < 90; c++)
@@ -434,7 +434,7 @@ public class StructureFrequency
             x++;
           }
         }
-        QuickSort.sortFloat(vl, ca);
+        QuickSort.sortFloatObject(vl, ca);
         int p = 0;
 
         /*
@@ -487,7 +487,7 @@ public class StructureFrequency
 
     // TODO fix the object length, also do it in completeConsensus
     // Object[] ca = new Object[625];
-    int[][] ca = new int[625][];
+    int[][] ca = javajs.util.AU.newInt2(625);// BH new int[625][];
     float[] vl = new float[625];
     int x = 0;
     for (int c = 65; c < 90; c++)
@@ -500,7 +500,7 @@ public class StructureFrequency
         x++;
       }
     }
-    QuickSort.sortFloat(vl, ca);
+    QuickSort.sortFloatObject(vl, ca);
 
     int valuesCount = 0;
     rtnval[1] = 0;
@@ -526,6 +526,11 @@ public class StructureFrequency
     return result;
   }
 
+  /**
+   * @j2sIgnore
+   * 
+   * @param args
+   */
   public static void main(String args[])
   {
     // Short test to see if checkBpType works