Finding the Stinky Parts of Your Code: Code Smell 256 - Mutable Getters | HackerNoon
Briefly

Immutable objects are crucial in programming to maintain object integrity and thread safety. Mutable getters can lead to corruption and unexpected behavior by allowing direct modification of internal state.
Returning copies of collections instead of exposing internals helps in preserving object control and preventing unintended changes or thread unsafety.
Read at Hackernoon
[
]
[
|
]