8022724: lint warnings in j.u.concurrent packages
Reviewed-by: chegar, lancea, darcy
--- a/jdk/src/share/classes/java/util/concurrent/CompletableFuture.java Fri Aug 09 13:50:13 2013 +0100
+++ b/jdk/src/share/classes/java/util/concurrent/CompletableFuture.java Fri Aug 09 17:56:38 2013 +0100
@@ -420,6 +420,7 @@
}
/** Base class can act as either FJ or plain Runnable */
+ @SuppressWarnings("serial")
abstract static class Async extends ForkJoinTask<Void>
implements Runnable, AsynchronousCompletionTask {
public final Void getRawResult() { return null; }
@@ -671,6 +672,7 @@
}
// Opportunistically subclass AtomicInteger to use compareAndSet to claim.
+ @SuppressWarnings("serial")
abstract static class Completion extends AtomicInteger implements Runnable {
}
--- a/jdk/src/share/classes/java/util/concurrent/ConcurrentHashMap.java Fri Aug 09 13:50:13 2013 +0100
+++ b/jdk/src/share/classes/java/util/concurrent/ConcurrentHashMap.java Fri Aug 09 17:56:38 2013 +0100
@@ -4716,6 +4716,7 @@
* Base class for bulk tasks. Repeats some fields and code from
* class Traverser, because we need to subclass CountedCompleter.
*/
+ @SuppressWarnings("serial")
abstract static class BulkTask<K,V,R> extends CountedCompleter<R> {
Node<K,V>[] tab; // same as Traverser
Node<K,V> next;
--- a/jdk/src/share/classes/java/util/concurrent/atomic/Striped64.java Fri Aug 09 13:50:13 2013 +0100
+++ b/jdk/src/share/classes/java/util/concurrent/atomic/Striped64.java Fri Aug 09 17:56:38 2013 +0100
@@ -43,6 +43,7 @@
* for classes supporting dynamic striping on 64bit values. The class
* extends Number so that concrete subclasses must publicly do so.
*/
+@SuppressWarnings("serial")
abstract class Striped64 extends Number {
/*
* This class maintains a lazily-initialized table of atomically