--- a/jdk/src/share/classes/java/lang/ref/Reference.java Thu Jul 25 20:30:58 2013 -0400
+++ b/jdk/src/share/classes/java/lang/ref/Reference.java Thu Jul 25 20:03:20 2013 -0700
@@ -96,6 +96,7 @@
* Enqueued: next reference in queue (or this if last)
* Inactive: this
*/
+ @SuppressWarnings("rawtypes")
Reference next;
/* When active: next element in a discovered reference list maintained by GC (or this if last)
@@ -119,7 +120,7 @@
* them. This list is protected by the above lock object. The
* list uses the discovered field to link its elements.
*/
- private static Reference pending = null;
+ private static Reference<Object> pending = null;
/* High-priority thread to enqueue pending References
*/
@@ -131,7 +132,7 @@
public void run() {
for (;;) {
- Reference r;
+ Reference<Object> r;
synchronized (lock) {
if (pending != null) {
r = pending;
@@ -166,7 +167,7 @@
continue;
}
- ReferenceQueue q = r.queue;
+ ReferenceQueue<Object> q = r.queue;
if (q != ReferenceQueue.NULL) q.enqueue(r);
}
}