You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature will help to truncate the long string variables(eg, photos, private/public keys, json strings etc) in toString() method. Although there is is an annotation to exclude a variable in toString() but incase someone wanted that variable in truncated format then this feature will be very helpful. Please find the example of truncated and non-truncated toString() method below.
I think that this is a very special corner case, exactly where you should write a custom old-fashioned toString() instead of having it being generated by Lombok.
Of course, I might be wrong, but I don't think that this is common enough to be worth implementing.
Anyway, if this would be implemented, I think that this would be relatively easy to add something like @Truncate(maxLength = 16).
This feature will help to truncate the long string variables(eg, photos, private/public keys, json strings etc) in toString() method. Although there is is an annotation to exclude a variable in toString() but incase someone wanted that variable in truncated format then this feature will be very helpful. Please find the example of truncated and non-truncated toString() method below.
The text was updated successfully, but these errors were encountered: