summaryrefslogtreecommitdiff
path: root/src/library-aux/scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-05-19 20:41:11 +0000
committerPaul Phillips <paulp@improving.org>2011-05-19 20:41:11 +0000
commitd1c806b2d391dc1aba8a1ffc83c4b3aae918d7dc (patch)
treeb0fee6497cf74fd9d23d3a13aabd7f99fc0bcfab /src/library-aux/scala
parent4afa092314487c0095ff9fd5756d05340f6150b0 (diff)
downloadscala-d1c806b2d391dc1aba8a1ffc83c4b3aae918d7dc.tar.gz
scala-d1c806b2d391dc1aba8a1ffc83c4b3aae918d7dc.tar.bz2
scala-d1c806b2d391dc1aba8a1ffc83c4b3aae918d7dc.zip
Fix documentation of ## regarding null.##, than...
Fix documentation of ## regarding null.##, thanks ymasory, no review.
Diffstat (limited to 'src/library-aux/scala')
-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 ==
*/