On Mon, 18 Aug 2025 16:49:48 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

> Add the missing `@Override` annotations to anonymous classes implementing 
> `WindowsMenuItemUIAccessor`.
> 
> PR #24170 for [JDK-8352638](https://bugs.openjdk.org/browse/JDK-8352638) 
> added the `@Override` annotations to `getMenuItem` and `getPart` but left 
> `getState` without the annotation.
> 
> For consistency, add the annotation to the `getState` method too.

src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsCheckBoxMenuItemUI.java
 line 55:

> 53:             }
> 54: 
> 55:             @Override

There is the new paintMenuItem method below which can be annotated as well.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26828#discussion_r2282991338

Reply via email to