Skip to content

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

@KeranYang

Description

@KeranYang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions