ilya.gorbunov
03/16/2017, 1:44 PMnhaarman
03/16/2017, 9:11 PMilya.gorbunov
03/16/2017, 9:12 PMnhaarman
03/16/2017, 9:22 PMilya.gorbunov
03/16/2017, 9:44 PMList
as a parameter, you can not reason about whether it's mutable or not. You know it's read-only, but that's all you know. So if you want it not to be changed from the outside, you have to make defensive copy.