RFR: 7903932: Make private static classes final and have a private constructor
Nizar Benalla
nbenalla at openjdk.org
Mon Jan 20 12:35:50 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 closing this for now, until we get more feedback on whether users tend to make these classes final or not.
It does seem like a reasonable safeguard because users may modify the generated code.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/274#issuecomment-2602310903
More information about the jextract-dev
mailing list