JAL-1645 Version-Rel Version 2.9 Year-Rel 2015 Licensing glob
[jalview.git] / src / jalview / util / QuickSort.java
index 4826bc3..19ef730 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -47,7 +47,7 @@ public class QuickSort
     {
       return Float.compare(values[o1], values[o2]);
     }
-    
+
   }
 
   static class IntComparator implements Comparator<Integer>
@@ -492,13 +492,13 @@ public class QuickSort
         nextZeroValue++;
       }
     }
-  
+
     /*
      * Copy zero values back to original arrays
      */
     System.arraycopy(f1, 0, arr, 0, nextZeroValue);
     System.arraycopy(s1, 0, s, 0, nextZeroValue);
-  
+
     if (nextZeroValue == arr.length)
     {
       return; // all zero
@@ -506,12 +506,11 @@ public class QuickSort
     /*
      * Sort the non-zero values
      */
-    int[] nonZeroInts = Arrays
-            .copyOfRange(f1, nextZeroValue, f1.length);
+    int[] nonZeroInts = Arrays.copyOfRange(f1, nextZeroValue, f1.length);
     char[] nonZeroChars = Arrays.copyOfRange(s1, nextZeroValue, s1.length);
     externalSort(nonZeroInts, nonZeroChars);
     // sort(nonZeroFloats, 0, nonZeroFloats.length - 1, nonZeroChars);
-  
+
     /*
      * Assemble sorted non-zero results
      */