Re: RFR: 8298385: Some font classes rely on blind casting to implement Object.equals() [v2]

2023-02-23 Thread SWinxy
On Wed, 22 Feb 2023 20:49:43 GMT, SWinxy wrote: >> Some also had two separate methods to check equality, one calling the other. >> Objects.equals() is used in some places as a replacement for a local copy of >> the function. In the end, the equals methods become quicker to understand >> their

Re: RFR: 8298385: Some font classes rely on blind casting to implement Object.equals() [v2]

2023-02-22 Thread Phil Race
On Wed, 22 Feb 2023 20:49:43 GMT, SWinxy wrote: >> Some also had two separate methods to check equality, one calling the other. >> Objects.equals() is used in some places as a replacement for a local copy of >> the function. In the end, the equals methods become quicker to understand >> their

Re: RFR: 8298385: Some font classes rely on blind casting to implement Object.equals() [v2]

2023-02-22 Thread SWinxy
> Some also had two separate methods to check equality, one calling the other. > Objects.equals() is used in some places as a replacement for a local copy of > the function. In the end, the equals methods become quicker to understand > their checks, more condensed, and becomes more in line with