numaflow-java icon indicating copy to clipboard operation
numaflow-java copied to clipboard

Add defensive copy for Getters for Message and Response [backward-incompatible]

Open KeranYang opened this issue 9 months ago • 0 comments

We added defensive copy for setters in a pervious PR. We should also do so for Getters. Technically this is a backward-incompatible change because we don't know how existing users are using the Getters. It is possible that they use Getters to modify internal instance variables.

KeranYang avatar May 08 '25 18:05 KeranYang