--- a/jdk/src/share/classes/javax/swing/text/LayoutQueue.java Thu Jul 24 14:51:13 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/text/LayoutQueue.java Thu Jul 24 16:43:36 2008 +0400
@@ -35,7 +35,7 @@
*/
public class LayoutQueue {
- Vector tasks;
+ Vector<Runnable> tasks;
Thread worker;
static LayoutQueue defaultQueue;
@@ -44,7 +44,7 @@
* Construct a layout queue.
*/
public LayoutQueue() {
- tasks = new Vector();
+ tasks = new Vector<Runnable>();
}
/**
@@ -90,7 +90,7 @@
return null;
}
}
- Runnable work = (Runnable) tasks.firstElement();
+ Runnable work = tasks.firstElement();
tasks.removeElementAt(0);
return work;
}