Integrated: 8311805: Clean up ScrollPane: drop redundant initialiser, mark scroller final

Alexey Ivanov aivanov at openjdk.org
Tue Jul 11 19:45:11 UTC 2023


On Tue, 11 Jul 2023 11:44:15 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> A small clean-up of `awt.ScrollPane` code:
> 
> 1. Remove the redundant initialiser for `vs` in `layout` and move the declaration to where it's used. (One less `Dimension` object is created.)
> 2. Mark the `scroller` field of the `PeerFixer` class as `final`.
> 
> Perhaps, the  `PeerFixer` class could be `final` too.

This pull request has now been integrated.

Changeset: aac903db
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/aac903dbfb7dfb42464cad23aa9f1d536b55cfc1
Stats:     4 lines in 1 file changed: 0 ins; 1 del; 3 mod

8311805: Clean up ScrollPane: drop redundant initialiser, mark scroller final

Reviewed-by: azvegint, serb, prr

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

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



More information about the client-libs-dev mailing list