Skip to content

Commit

Permalink
8335633: Missing @OverRide in Dimension
Browse files Browse the repository at this point in the history
Reviewed-by: jhendrikx, azvegint
  • Loading branch information
Andy Goryachev committed Jul 5, 2024
1 parent 459b15f commit 72701e6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public Dimension(int width, int height) {
this.height = height;
}

@Override
public boolean equals(Object obj) {
if (obj instanceof Dimension) {
Dimension d = (Dimension) obj;
Expand All @@ -44,6 +45,7 @@ public boolean equals(Object obj) {
return false;
}

@Override
public int hashCode() {
return Objects.hash(width, height);
}
Expand Down

1 comment on commit 72701e6

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.