News for hackers. Stuff that matters.
Re:Immutable annotations for Java by saryant on Sunday July 12, 2015 @12:49PM (#9874022)
Not quite. If the original collection is modified, the "immutable" view will reflect that change.

Plus, you can't statically know if the collection you're passed is immutable or not. Trying to modify it will just blow up at runtime.

There are no comments on this comment yet.