jdk/src/share/classes/javax/swing/text/LayoutQueue.java
changeset 1287 a04aca99c77a
parent 2 90ce3da70b43
child 1639 a97859015238
child 2481 3aa9107f1b72
--- 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;
     }