changeset 7856:ce1c874903cb

8022724: lint warnings in j.u.concurrent packages Reviewed-by: chegar, lancea, darcy
author dl
date Fri, 09 Aug 2013 17:56:38 +0100
parents 84004d0e3fdd
children 03822f2389bf
files src/share/classes/java/util/concurrent/CompletableFuture.java src/share/classes/java/util/concurrent/ConcurrentHashMap.java src/share/classes/java/util/concurrent/atomic/Striped64.java
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/concurrent/CompletableFuture.java	Fri Aug 09 13:50:13 2013 +0100
+++ b/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/src/share/classes/java/util/concurrent/ConcurrentHashMap.java	Fri Aug 09 13:50:13 2013 +0100
+++ b/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/src/share/classes/java/util/concurrent/atomic/Striped64.java	Fri Aug 09 13:50:13 2013 +0100
+++ b/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