Is there any way to mask sensitive fields on the automatically generated "toString()" method in Java Records without overriding it? (i.e. Annotations)
i.e.
public record SomeRecord(..., String apiKey, String password, ...) { }
Please no "Use Lombok!" answers :)
I think you can wrap the sensitive info by the object:
So in your SomeRecord: