Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The @Immutable annotation has a list of known "effectively immutable" classes. There should be some way to provide an extensible list of class names or "vouch" for a particular field's immutability.
Possible ways to implement might look like the examples below:
@Immutable class Person { String name @KnownImmutable MyUuid id } @KnownImmutables([MyDate, MyUuid]) @Immutable class Person { String name MyDate dob MuUuid id }