提交 b2c2d597 编写于 作者: D darcy

8028300: Fix raw type lint warnings in java.util.concurrent

Reviewed-by: chegar, martin
上级 adf1e099
...@@ -1820,7 +1820,7 @@ public class ForkJoinPool extends AbstractExecutorService { ...@@ -1820,7 +1820,7 @@ public class ForkJoinPool extends AbstractExecutorService {
} }
} }
for (;;) { // help stealer or descend to its stealer for (;;) { // help stealer or descend to its stealer
ForkJoinTask[] a; int b; ForkJoinTask<?>[] a; int b;
if (subtask.status < 0) // surround probes with if (subtask.status < 0) // surround probes with
continue restart; // consistency checks continue restart; // consistency checks
if ((b = v.base) - v.top < 0 && (a = v.array) != null) { if ((b = v.base) - v.top < 0 && (a = v.array) != null) {
......
...@@ -1253,11 +1253,11 @@ public class ScheduledThreadPoolExecutor ...@@ -1253,11 +1253,11 @@ public class ScheduledThreadPoolExecutor
* Snapshot iterator that works off copy of underlying q array. * Snapshot iterator that works off copy of underlying q array.
*/ */
private class Itr implements Iterator<Runnable> { private class Itr implements Iterator<Runnable> {
final RunnableScheduledFuture[] array; final RunnableScheduledFuture<?>[] array;
int cursor = 0; // index of next element to return int cursor = 0; // index of next element to return
int lastRet = -1; // index of last element, or -1 if no such int lastRet = -1; // index of last element, or -1 if no such
Itr(RunnableScheduledFuture[] array) { Itr(RunnableScheduledFuture<?>[] array) {
this.array = array; this.array = array;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册