Versions Compared

Key

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

...

Although final can be used to specify immutable constants, there is a caveat when dealing with composite objects. See guideline OBJ01-J. Do not assume that a final reference makes Never conflate immutability of a reference with that of the referenced object immutablefor more details.

Noncompliant Code Example

...