summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library-aux/scala/Any.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library-aux/scala/Any.scala b/src/library-aux/scala/Any.scala
index a97e5f050b..2feab8f836 100644
--- a/src/library-aux/scala/Any.scala
+++ b/src/library-aux/scala/Any.scala
@@ -68,11 +68,13 @@ abstract class Any {
*/
final def != (that: Any): Boolean = !(this == that)
- /** Equivalent to `x.hashCode` except for boxed numeric types.
+ /** Equivalent to `x.hashCode` except for boxed numeric types and `null`.
* For numerics, it returns a hash value which is consistent
* with value equality: if two value type instances compare
* as true, then ## will produce the same hash value for each
* of them.
+ * For `null` returns a hashcode where `null.hashCode` throws a
+ * `NullPointerException`.
*
* @return a hash value consistent with ==
*/