...
Although final
is most often safe for creating compile time immutable constants, its use has a few caveats when dealing with composite objects (mutable data in particular). See OBJ03-J. Be careful about aware that a final reference may not always refer to immutable data for more details.
Noncompliant Code Example
...