On Mon, 9 Dec 2024 20:47:07 GMT, Harshitha Onkar <[email protected]> wrote:
> ```
> public void delay(int ms) {
> if (isEventDispatchThread()) {
> throw new IllegalThreadStateException("delay() called on EDT");
> }
> ```
There is already a `checkNotDispatchThread` method, so we can reuse it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22564#issuecomment-2531663053
