< prev index next >

src/java.base/share/classes/java/util/ArraysParallelSortHelpers.java

Print this page

        

@@ -85,19 +85,21 @@
     /**
      * A placeholder task for Sorters, used for the lowest
      * quartile task, that does not need to maintain array state.
      */
     static final class EmptyCompleter extends CountedCompleter<Void> {
+        @java.io.Serial
         static final long serialVersionUID = 2446542900576103244L;
         EmptyCompleter(CountedCompleter<?> p) { super(p); }
         public final void compute() { }
     }
 
     /**
      * A trigger for secondary merge of two merges
      */
     static final class Relay extends CountedCompleter<Void> {
+        @java.io.Serial
         static final long serialVersionUID = 2446542900576103244L;
         final CountedCompleter<?> task;
         Relay(CountedCompleter<?> task) {
             super(null, 1);
             this.task = task;

@@ -109,10 +111,11 @@
     }
 
     /** Object + Comparator support class */
     static final class FJObject {
         static final class Sorter<T> extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final T[] a, w;
             final int base, size, wbase, gran;
             Comparator<? super T> comparator;
             Sorter(CountedCompleter<?> par, T[] a, T[] w, int base, int size,

@@ -146,10 +149,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger<T> extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final T[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Comparator<? super T> comparator;
             Merger(CountedCompleter<?> par, T[] a, T[] w,

@@ -231,10 +235,11 @@
     } // FJObject
 
     /** byte support class */
     static final class FJByte {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final byte[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, byte[] a, byte[] w, int base,
                    int size, int wbase, int gran) {

@@ -264,10 +269,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final byte[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, byte[] a, byte[] w,
                    int lbase, int lsize, int rbase,

@@ -342,10 +348,11 @@
     } // FJByte
 
     /** char support class */
     static final class FJChar {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final char[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, char[] a, char[] w, int base,
                    int size, int wbase, int gran) {

@@ -375,10 +382,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final char[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, char[] a, char[] w,
                    int lbase, int lsize, int rbase,

@@ -453,10 +461,11 @@
     } // FJChar
 
     /** short support class */
     static final class FJShort {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final short[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, short[] a, short[] w, int base,
                    int size, int wbase, int gran) {

@@ -486,10 +495,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final short[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, short[] a, short[] w,
                    int lbase, int lsize, int rbase,

@@ -564,10 +574,11 @@
     } // FJShort
 
     /** int support class */
     static final class FJInt {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final int[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, int[] a, int[] w, int base,
                    int size, int wbase, int gran) {

@@ -597,10 +608,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final int[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, int[] a, int[] w,
                    int lbase, int lsize, int rbase,

@@ -675,10 +687,11 @@
     } // FJInt
 
     /** long support class */
     static final class FJLong {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final long[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, long[] a, long[] w, int base,
                    int size, int wbase, int gran) {

@@ -708,10 +721,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final long[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, long[] a, long[] w,
                    int lbase, int lsize, int rbase,

@@ -786,10 +800,11 @@
     } // FJLong
 
     /** float support class */
     static final class FJFloat {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final float[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, float[] a, float[] w, int base,
                    int size, int wbase, int gran) {

@@ -819,10 +834,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final float[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, float[] a, float[] w,
                    int lbase, int lsize, int rbase,

@@ -897,10 +913,11 @@
     } // FJFloat
 
     /** double support class */
     static final class FJDouble {
         static final class Sorter extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final double[] a, w;
             final int base, size, wbase, gran;
             Sorter(CountedCompleter<?> par, double[] a, double[] w, int base,
                    int size, int wbase, int gran) {

@@ -930,10 +947,11 @@
                 s.tryComplete();
             }
         }
 
         static final class Merger extends CountedCompleter<Void> {
+            @java.io.Serial
             static final long serialVersionUID = 2446542900576103244L;
             final double[] a, w; // main and workspace arrays
             final int lbase, lsize, rbase, rsize, wbase, gran;
             Merger(CountedCompleter<?> par, double[] a, double[] w,
                    int lbase, int lsize, int rbase,
< prev index next >