Community
Participate
Working Groups
hi, In some of my projects, we have code like this: Toolkit.getDefaultToolkit().getSystemEventQueue().invokeAndWait(new Runnable()) This is the "standard" way of posting an event to the EventQueue. Can this task marker be made more intelligent? I know that we can put in some filters - but that again seems like just a workaround, and not a real solution.
Another example is: Thread.currentThread().sleep(1000);
I agree for the filtering counter-argument. Why don't you simply write: Thread.sleep(1000) ? This warning is optional, you can turn it off in the compiler preferences.
*** Bug 25994 has been marked as a duplicate of this bug. ***
Is it ok to close?
Closing. Option exists if such pattern is meant to be desired.
Forgot to assign
Closing