From 30d4f0165f362ce5ee055a0254190e7fd5793f40 Mon Sep 17 00:00:00 2001 From: Parambir Singh Date: Thu, 9 Jul 2015 12:43:08 +1000 Subject: Update scaladoc for Any.scala#equals() The transitive requirement for `Any` shouldn't mention `AnyRef` --- src/library-aux/scala/Any.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library-aux/scala') diff --git a/src/library-aux/scala/Any.scala b/src/library-aux/scala/Any.scala index 1c25989c30..1be186d114 100644 --- a/src/library-aux/scala/Any.scala +++ b/src/library-aux/scala/Any.scala @@ -38,7 +38,7 @@ abstract class Any { * - It is reflexive: for any instance `x` of type `Any`, `x.equals(x)` should return `true`. * - It is symmetric: for any instances `x` and `y` of type `Any`, `x.equals(y)` should return `true` if and * only if `y.equals(x)` returns `true`. - * - It is transitive: for any instances `x`, `y`, and `z` of type `AnyRef` if `x.equals(y)` returns `true` and + * - It is transitive: for any instances `x`, `y`, and `z` of type `Any` if `x.equals(y)` returns `true` and * `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`. * * If you override this method, you should verify that your implementation remains an equivalence relation. -- cgit v1.2.3