--
You received this message because you are subscribed to a topic in the Google Groups "Project Lombok" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/project-lombok/9on7mFH3z34/unsubscribe.
To unsubscribe from this group and all its topics, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
Using a non ast transform based toString generator means reflection is involved which has bad connotations. For example, that does not work on GWT. We aren't going to add a dep on guava just to avoid an hour or two of busywork :P
Using a non ast transform based toString generator means reflection is involved which has bad connotations.
For example, that does not work on GWT.
We aren't going to add a dep on guava just to avoid an hour or two of busywork :P
@JsonInclude(Include.NON_DEFAULT)It's been almost 2 years since this discussion. Any chance of getting it in now?I definitely understand the desire to avoid a new dependency on Guava, but surely the couple dozen lines of code to join non-null (or better: non-default) fields isn't incredibly hard to write. If it's "just an hour or two of busywork" that busywork can be written once inside Lombok rather than dozens of times by each of its users. That's the key value of Lombok itself, isn't it?
For a point of comparison, Jackson'sis what I'd like to see @ToString offer:@JsonInclude(Include.NON_DEFAULT)