Community
Participate
Working Groups
Example: ----------------- @Data class Foo { val String a } ----------------- this is semantically equivalent to ----------------- @Data class Foo { String a } ----------------- because @Date implies that all member fields of the class are final. Therefore, it might be helpful to raise a warning if "val" is specified.
I'd expect an error if 'var' is used Using 'val' explicitly may comunicate better and allows for type inference so a warning is not what I'd like to see.
The new @ValueObject annotation should have the error from comment #1.
pushed to review https://git.eclipse.org/r/#/c/30500/
Verified for the new @Data. Nothing changed for the deprecated one. I guess that's what Sven meant.
Yes, the new @Data was initially meant to be called @ValueObject. And yes, we are no longer investing any effort in the old @Data.