How to make data class copy with only properties initialized, to avoid StackOverflowError?
I have encountered a problem while trying to resolve problem with sensitive info in application logs — we have quite large data class object that at some time in processing flow we log. Problem is that this object contains properties email
and phoneNumber
, which we need to mask while logging to avoid leaking this data, for this we have two extension methods: String.maskEmail()
and String.maskPhoneNumber()
.
How to make data class copy with only properties initialized, to avoid StackOverflowError?
I have encountered a problem while trying to resolve problem with sensitive info in application logs — we have quite large data class object that at some time in processing flow we log. Problem is that this object contains properties email
and phoneNumber
, which we need to mask while logging to avoid leaking this data, for this we have two extension methods: String.maskEmail()
and String.maskPhoneNumber()
.
How to make data class copy with only properties initialized, to avoid StackOverflowError?
I have encountered a problem while trying to resolve problem with sensitive info in application logs — we have quite large data class object that at some time in processing flow we log. Problem is that this object contains properties email
and phoneNumber
, which we need to mask while logging to avoid leaking this data, for this we have two extension methods: String.maskEmail()
and String.maskPhoneNumber()
.
How to make data class copy with only properties initialized, to avoid StackOverflowError?
I have encountered a problem while trying to resolve problem with sensitive info in application logs — we have quite large data class object that at some time in processing flow we log. Problem is that this object contains properties email
and phoneNumber
, which we need to mask while logging to avoid leaking this data, for this we have two extension methods: String.maskEmail()
and String.maskPhoneNumber()
.