RFR: 7903932: Make private static classes final and have a private constructor
Jorn Vernee
jvernee at openjdk.org
Fri Jan 17 13:10:51 UTC 2025
On Fri, 17 Jan 2025 07:41:53 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:
> Please review this patch to make static utility classes final with a private constructor, as they are not meant to be extended.
>
> This is a small refractor of the generated code.
>
> TIA
I'm sorry but, the main benefit of this change seems to be making ourselves feel good about following a pattern. I don't think doing this is worth the increased complexity in jextract, and the increased visual clutter in the output.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/274#issuecomment-2598333300
More information about the jextract-dev
mailing list