...
As a result, the original array values cannot be modified by a client.
Compliant Solution
An alternative approach is to declare This compliant solution declares a private
array from which a public
immutable list is constructed.
...
...
As a result, the original array values cannot be modified by a client.
An alternative approach is to declare This compliant solution declares a private
array from which a public
immutable list is constructed.
...