Lombok: Add a hideNulls option to @ToString

Created on 14 Jul 2015  路  7Comments  路  Source: projectlombok/lombok

_Migrated from Google Code (issue 456)_

enhancement

Most helpful comment

this most wanted request should not fall under the umbrella #1297. Please resurrect it !
Like many others I'm still waiting for a hideNulls option on ToString (my logs would be so less verbose !).
As said by someone in #1297 :

a separate boolean flag for hideNulls is very useful.

  • This is the most wanted feature about ToString annotation
  • It's much easier to use for client
  • It's much easier to implement

All 7 comments

:bust_in_silhouette: velo.br   :clock8: Mar 02, 2013 at 23:15 UTC

What steps will reproduce the problem?

  1. Annotate a class with @ ToString
  2. Print the object with a lot of attributes
  3. See lots of nulls

What is the expected output? What do you see instead?
I would like to be able to hide null so it would be better readable!

I'm willing to do it myself, but I need some help to understand how lombok handle the bytecode.

:bust_in_silhouette: r.spilker   :clock8: Nov 19, 2013 at 19:12 UTC

:bust_in_silhouette: r.spilker   :clock8: Nov 19, 2013 at 19:15 UTC

Issue #642 has been merged into this issue.

:bust_in_silhouette: r.spilker   :clock8: Aug 20, 2014 at 18:54 UTC

Issue #758 has been merged into this issue.

_End of migration_

Caught in umbrella #1297.

this most wanted request should not fall under the umbrella #1297. Please resurrect it !
Like many others I'm still waiting for a hideNulls option on ToString (my logs would be so less verbose !).
As said by someone in #1297 :

a separate boolean flag for hideNulls is very useful.

  • This is the most wanted feature about ToString annotation
  • It's much easier to use for client
  • It's much easier to implement
Was this page helpful?
0 / 5 - 0 ratings

Related issues

lombokissues picture lombokissues  路  39Comments

t-kuester picture t-kuester  路  31Comments

lex-em picture lex-em  路  61Comments

krzyk picture krzyk  路  88Comments

Krasnyanskiy picture Krasnyanskiy  路  39Comments