Permalink
Browse files

refactor: add CallableQueryKey#equals override

Make hashCode and equals paired just in case, so static analyzers are happy
  • Loading branch information...
vlsi committed Dec 30, 2016
1 parent 9ef7d6f commit 401c51a15d80d2f24cddbe5cd4b2ca7509a0a765
Showing with 6 additions and 0 deletions.
  1. +6 −0 pgjdbc/src/main/java/org/postgresql/core/CallableQueryKey.java
@@ -28,4 +28,10 @@ public String toString() {
public int hashCode() {
return super.hashCode() * 31;
}

@Override
public boolean equals(Object o) {
// Nothing interesting here, overriding equals to make hashCode and equals paired
return super.equals(o);
}
}

0 comments on commit 401c51a

Please sign in to comment.