Skip to content

Commit 53b4358

Browse files
EvgenyB1001iText-CI
authored andcommitted
Refactor kernel/colors/Color hashCode() method
DEVSIX-4518
1 parent 26cd635 commit 53b4358

File tree

1 file changed

+1
-1
lines changed
  • kernel/src/main/java/com/itextpdf/kernel/colors

1 file changed

+1
-1
lines changed

kernel/src/main/java/com/itextpdf/kernel/colors/Color.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public boolean equals(Object o) {
256256
*/
257257
@Override
258258
public int hashCode() {
259-
int result = colorSpace != null ? colorSpace.hashCode() : 0;
259+
int result = colorSpace != null ? colorSpace.getPdfObject().hashCode() : 0;
260260
result = 31 * result + (colorValue != null ? Arrays.hashCode(colorValue) : 0);
261261
return result;
262262
}

0 commit comments

Comments
 (0)