You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/09/17 13:42:08 UTC

[groovy] 04/05: Equivalency to Java `equals(Object)` and `==` respectively

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 18e5d2f7aed52d193999586e0576e660e1fb2a83
Author: Alex Golub <a1...@gmail.com>
AuthorDate: Sat Sep 17 14:21:40 2022 +0300

    Equivalency to Java `equals(Object)` and `==` respectively
---
 src/spec/doc/core-operators.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 5a92a0ff1a..435c897058 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -810,8 +810,8 @@ include::../test/OperatorsTest.groovy[tags=identity_op,indent=0]
 ----
 <1> Create a list of strings
 <2> Create another list of strings containing the same elements
-<3> using `==`, we test object equality
-<4> but using `is`, we can check that references are distinct
+<3> using `==`, we test object equality, equivalent to `list1.equals(list2)` in Java
+<4> but using `is`, we can check that references are distinct,  equivalent to `list1 != list2` in Java
 
 === Coercion operator