This is an automated email from the ASF dual-hosted git repository. sunlan pushed a commit to branch GROOVY_3_0_X in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 180314aa0d722b3527cf5d732c3b1c0d36e6ada2 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 (cherry picked from commit 1fdcedb590a743a5b2cc1fec525031a2a92360cc) --- 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 24699c50d7..728a82b2b8 100644 --- a/src/spec/doc/core-operators.adoc +++ b/src/spec/doc/core-operators.adoc @@ -351,7 +351,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 @@ -996,4 +996,3 @@ Here is a complete list of the operators and their corresponding methods: | `~a` | a.bitwiseNegate() |==== -
