[OpenJDK 2D-Dev] RFR 8218854: FontMetrics.getMaxAdvance may be less than the maximum FontMetrics.charWidth
Sergey.Bylokhov at oracle.com
Tue Feb 26 08:09:48 UTC 2019
Hi, Martin.> * getAllFonts NPE handled
The current version is fine, but note that this null-check is not necessary.
Previously it was possible because the loadFonts() method might skip initialization of the instance field "fonts"(which was null by default) as a result NPE could occurred when you try to iterate over "fonts"
Best regards, Sergey.
More information about the 2d-dev