Skip to content

Commit 849b433

Browse files
committed
fix: add hashCode implementation
Add a hashCode implementation that ensures that it is in sync with the equals method.
1 parent 39c1290 commit 849b433

File tree

1 file changed

+5
-0
lines changed
  • google-cloud-spanner/src/main/java/com/google/cloud/spanner

1 file changed

+5
-0
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,11 @@ void appendToOptions(Options options) {
10081008
options.lastStatement = true;
10091009
}
10101010

1011+
@Override
1012+
public int hashCode() {
1013+
return LastStatementUpdateOption.class.hashCode();
1014+
}
1015+
10111016
@Override
10121017
public boolean equals(Object o) {
10131018
return o instanceof LastStatementUpdateOption;

0 commit comments

Comments
 (0)