On Thu, 3 Nov 2022 07:58:17 GMT, Srinivas Mandalika <smandal...@openjdk.org> 
wrote:

>> test/jdk/java/awt/EventDispatchThread/InterruptEDTTest.java line 86:
>> 
>>> 84:         ((sun.awt.SunToolkit) (Toolkit.getDefaultToolkit())).realSync();
>>> 85:         try {
>>> 86:             EventQueue.invokeAndWait(() -> {
>> 
>> This is duplicate code in Line# 67 to Line# 72.
>
> The intent was to ensure latest values are picked up, thereby ensuring the 
> stability of the code.  But I see the point that it does add value since 
> there is not change in the frame position. Will remove it.

[Fixed Review Comments: Removed redundant 
code](https://github.com/openjdk/jdk/pull/10784/commits/ad0a62400b5bcd95c01174e85ee8c7834be39fed)

-------------

PR: https://git.openjdk.org/jdk/pull/10784

Reply via email to