Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.4.4
-
None
-
None
-
None
Description
I am using @Immutable for some command objects, where some of the fields are sometimes-complex domain objects. In this case, I don't need deep immutability for semantic correctness, and it would be helpful to have a parameter to indicate that the transform shouldn't bother checking the fields' types, just make them final and generate the appropriate methods:
@Immutable(shallow = true) class PayCommand { Invoice invoice Money amount }