changeset 21667:e4c61eb98292

8028300: Fix raw type lint warnings in java.util.concurrent Reviewed-by: chegar, martin
author darcy
date Wed, 13 Nov 2013 11:06:57 -0800
parents 918ef08589ee
children b62ce4a9635f
files jdk/src/share/classes/java/util/concurrent/ForkJoinPool.java jdk/src/share/classes/java/util/concurrent/ScheduledThreadPoolExecutor.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/util/concurrent/ForkJoinPool.java	Wed Nov 13 18:41:30 2013 +0100
+++ b/jdk/src/share/classes/java/util/concurrent/ForkJoinPool.java	Wed Nov 13 11:06:57 2013 -0800
@@ -1820,7 +1820,7 @@
                         }
                     }
                     for (;;) { // help stealer or descend to its stealer
-                        ForkJoinTask[] a; int b;
+                        ForkJoinTask<?>[] a; int b;
                         if (subtask.status < 0)     // surround probes with
                             continue restart;       //   consistency checks
                         if ((b = v.base) - v.top < 0 && (a = v.array) != null) {
--- a/jdk/src/share/classes/java/util/concurrent/ScheduledThreadPoolExecutor.java	Wed Nov 13 18:41:30 2013 +0100
+++ b/jdk/src/share/classes/java/util/concurrent/ScheduledThreadPoolExecutor.java	Wed Nov 13 11:06:57 2013 -0800
@@ -1253,11 +1253,11 @@
          * Snapshot iterator that works off copy of underlying q array.
          */
         private class Itr implements Iterator<Runnable> {
-            final RunnableScheduledFuture[] array;
+            final RunnableScheduledFuture<?>[] array;
             int cursor = 0;     // index of next element to return
             int lastRet = -1;   // index of last element, or -1 if no such
 
-            Itr(RunnableScheduledFuture[] array) {
+            Itr(RunnableScheduledFuture<?>[] array) {
                 this.array = array;
             }