# HG changeset patch
# User lancea
# Date 1303142849 14400
# Node ID 14b5e598a0fed69008a7f6163cbb7836ce12bcf5
# Parent 5f5d493d30a057a37ab36dfa9508182524f1c1af
7037085: Add hashCode() to Timestamp to address Findbugs warning
Reviewed-by: darcy, alanb, emcmanus
diff -r 5f5d493d30a0 -r 14b5e598a0fe jdk/src/share/classes/java/sql/Timestamp.java
--- a/jdk/src/share/classes/java/sql/Timestamp.java Mon Apr 18 16:10:40 2011 +0100
+++ b/jdk/src/share/classes/java/sql/Timestamp.java Mon Apr 18 12:07:29 2011 -0400
@@ -54,7 +54,7 @@
* As a result, the Timestamp.equals(Object)
* method is not symmetric with respect to the
* java.util.Date.equals(Object)
- * method. Also, the hashcode
method uses the underlying
+ * method. Also, the hashCode
method uses the underlying
* java.util.Date
* implementation and therefore does not include nanos in its computation.
*
@@ -515,6 +515,18 @@ } } + /** + * {@inheritDoc} + * + * The {@code hashCode} method uses the underlying {@code java.util.Date} + * implementation and therefore does not include nanos in its computation. + * + */ + @Override + public int hashCode() { + return super.hashCode(); + } + static final long serialVersionUID = 2745179027874758501L; }