[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: FYI: Robot fixlet
From: |
Tom Tromey |
Subject: |
[cp-patches] Patch: FYI: Robot fixlet |
Date: |
26 Apr 2005 12:24:33 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
I'm checking this in to Classpath and libgcj.
This is a small change to Robot to make it call a static method in a
less confusing way. As written it looks like a non-static call.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
* java/awt/Robot.java (waitForIdle): Call invokeAndWait in a
static way.
Index: java/awt/Robot.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Robot.java,v
retrieving revision 1.6
diff -u -r1.6 Robot.java
--- java/awt/Robot.java 22 Feb 2005 07:07:46 -0000 1.6
+++ java/awt/Robot.java 26 Apr 2005 18:26:02 -0000
@@ -394,10 +394,9 @@
throw new IllegalThreadStateException ("Robot: waitForIdle called from "
+ "the event dispatch thread");
- EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue ();
try
{
- q.invokeAndWait (new Runnable () { public void run () { } });
+ EventQueue.invokeAndWait (new Runnable () { public void run () { } });
}
catch (InterruptedException e)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: FYI: Robot fixlet,
Tom Tromey <=