Hi, Phil. A few years ago in JDK-8139176 we added a check for the "style" to the CFont.equals(), probably this check can be added to the current method in PhysicalFont and removed from the CFont?
On 12/7/19 11:59 am, Philip Race wrote:
The equals() method was refactored a bit to make it easier to add the extra tests, and some of the complexity is due to paranoia that platName *might* be null .. although I don't think that should ever be the case.
I think code can be simplified if Objects.equals() will be used Don't we need to update the hashcode as well?: return Objects.hash(fullName, platName); -- Best regards, Sergey.