Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...