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 1fdcedb590a743a5b2cc1fec525031a2a92360cc Author: Alex Golub <[email protected]> AuthorDate: Fri Sep 16 14:08:04 2022 +0300 assert fails because by default `@ToString` `includePackage` property is set to `true` returning package name along with object name i.e. `groovy.Element(Helium, 2)` is returned value on the right hand side --- src/spec/doc/core-operators.adoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc index 78726bf59b..5a92a0ff1a 100644 --- a/src/spec/doc/core-operators.adoc +++ b/src/spec/doc/core-operators.adoc @@ -357,7 +357,7 @@ Groovy 3.0.0 introduces the Elvis operator, for example: -------------------------------------- import groovy.transform.ToString -@ToString +@ToString(includePackage = false) class Element { String name int atomicNumber @@ -1004,4 +1004,3 @@ Here is a complete list of the operators and their corresponding methods: | `~a` | a.bitwiseNegate() |==== -
