-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] ToString's onlyExplicitlyIncluded configurable from lombok.config #2849
Comments
Fair enough. Barely got across the value vs. maintenance burden hurdle, but made it. |
@rzwitserloot Great 👍 |
I just noticed that commit 6d2a474 that implemented this change breaks a lot of the tests. Didn't investigate further on the cause. |
…uded a config key." This reverts commit 6d2a474.
So... maybe reopen this feature? |
@janrieke Any ideas on why this breaks so many tests? I haven't verified that statement myself. |
Yes, the reason is that this feature exposed a three year old bug, where we cast the default parameter to the wrong type, and the catch block then returns The proper solution is to fix the offending code, which we're doing right now, and to change the after-files for this specific feature, that should have included the field names. So apart from the after-files, the pull request itself is great. |
As there is the
@ToString(onlyExplicitlyIncluded = true/false)
option already, it would make sense to have the ability of setting it once across the project at thelombok.config
, eg. vialombok.toString.onlyExplicitlyIncluded = true/false
Justification:
lombok.toString.doNotUseGetters
,lombok.toString.includeFieldNames
andlombok.toString.callSuper
BTW. Thanks for adding this option. It really helps preventing data leakage into log files 👍
The text was updated successfully, but these errors were encountered: