RFR: 8365708: Add missing @Override annotations to WindowsMenuItemUIAccessor
Sergey Bylokhov
serb at openjdk.org
Mon Aug 18 17:18:16 UTC 2025
On Mon, 18 Aug 2025 16:49:48 GMT, Alexey Ivanov <aivanov at 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
More information about the client-libs-dev
mailing list