RFR: JDK-8297332: Remove easy warnings in javafx.base
Andy Goryachev
angorya at openjdk.org
Mon Nov 21 22:52:28 UTC 2022
On Mon, 21 Nov 2022 22:36:05 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> let's create a followup ticket - the messed up statements in Disposer and especially in PrismFontFactory:1401 are worrying.
>>
>> cc: @prrace
>
> @andy-goryachev-oracle The ones in the various `Disposer` classes and `PrismFontFactory` are functionally correct, but use an anti-pattern. The block really is intentionally empty, but the better pattern for this is to use `{}` rather than a `;` since the latter looks like you might have made a mistake.
you are right - these are not bugs.
-------------
PR: https://git.openjdk.org/jfx/pull/957
More information about the openjfx-dev
mailing list