RFR: 8318113: CSS.BackgroundImage doesn't implement equals
Sergey Bylokhov
serb at openjdk.org
Fri Nov 10 21:14:57 UTC 2023
On Fri, 10 Nov 2023 13:50:27 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> CSSBackgroundImage.equals() is implemented
src/java.desktop/share/classes/javax/swing/text/html/CSS.java line 2971:
> 2969: @Override
> 2970: public int hashCode() {
> 2971: return (this.svalue != null) ? this.svalue.hashCode() : 0;
This change look fine, but this line can be simplified by the Objects.hashCode();
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16613#discussion_r1389926424
More information about the client-libs-dev
mailing list