groovy/groovy-core — pull request #26 by andresteingress (2012-02-16 20:47:15+00:00)
Title: GROOVY-5134: @ToString optionally exclude fields with null values

this patch adds the "ignoreNullValues" annotation parameter to @ToString. In order to let check properties and/or fields for null values, another (hidden) local variable had to be introduced. In addition, I added a test case for testing @ToString in general, not restricted to ignoreNullValues.