Mutating input parameters inside a function is a very frequent bad practice, and dangerous because it’s made without awareness of the consequence, especially in multithread application. To understand how to recognize such code, we need to know how Java stores the parameters in memory and how update our code in order to avoid such problem. … Continue reading "Be a good citizens by not mutating input parameter"
↧