RFR: 8374340: FontRenderContext instance variables should be final
Andrey Turbanov
aturbanov at openjdk.org
Thu Dec 25 09:18:54 UTC 2025
On Wed, 24 Dec 2025 12:17:47 GMT, Daniel Gredler <dgredler at openjdk.org> wrote:
> Instances of FontRenderContext are immutable, but its instance variables are not declared final.
src/java.desktop/share/classes/java/awt/font/FontRenderContext.java line 66:
> 64: */
> 65: public class FontRenderContext {
> 66: private transient final AffineTransform tx;
Let's use blessed modifiers order
Suggestion:
private final transient AffineTransform tx;
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28981#discussion_r2646775774
More information about the client-libs-dev
mailing list