RFR: 8365711: Declare menuBarHeight and hotTrackingOn private

Alexey Ivanov aivanov at openjdk.org
Mon Aug 18 17:23:11 UTC 2025


On Mon, 18 Aug 2025 17:05:26 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Since `WindowsMenuUI` is a final class after PR #24170 for [JDK-8352638](https://bugs.openjdk.org/browse/JDK-8352638)), it cannot be extended, therefore the `protected` modifier doesn't make sense.
> 
> Mark both `menuBarHeight` and `hotTrackingOn` as `private` fields.

@mrserb Could you take a look at another trivial clean-up, please?

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

PR Comment: https://git.openjdk.org/jdk/pull/26829#issuecomment-3197790729


More information about the client-libs-dev mailing list