News for hackers. Stuff that matters.
Re:Immutable annotations for Java by catnaroek on Sunday July 12, 2015 @09:21PM (#9875840)
> make sure that objects are always in a consistent state

This only works for invariants that constrain the state of a single object. Realistically, invariants that constrain the state of multiple objects are a necessity, and no amount of in-object validation will help you enforce those.

There are no comments on this comment yet.