numaflow-java
numaflow-java copied to clipboard
Add defensive copy for Getters for Message and Response [backward-incompatible]
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.