diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-19 20:41:11 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-19 20:41:11 +0000 |
commit | d1c806b2d391dc1aba8a1ffc83c4b3aae918d7dc (patch) | |
tree | b0fee6497cf74fd9d23d3a13aabd7f99fc0bcfab /src/library-aux | |
parent | 4afa092314487c0095ff9fd5756d05340f6150b0 (diff) | |
download | scala-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')
-rw-r--r-- | src/library-aux/scala/Any.scala | 4 |
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 == */ |