Elie Abichar
11/11/2021, 4:02 PMFudge
11/11/2021, 5:06 PMephemient
11/11/2021, 5:26 PMcompileOnly
while using the real dependency as runtimeOnly
?Elie Abichar
11/11/2021, 5:35 PMmaybe an IDE hint could be added that shows a public field is being used and not a setter.i think this can greatly help us spot these issues. It would be nice to be able to configure a warning when a public prop gets directly updated
as a workaround, you could create a API stubthis is going to be tedious, we have hundreds of these java classes with public props and they are evolving
ephemient
11/11/2021, 7:16 PMJoffrey
11/12/2021, 9:51 AMElie Abichar
11/16/2021, 2:58 PMJoffrey
11/16/2021, 3:28 PMJoffrey
11/16/2021, 3:36 PMJoffrey
11/16/2021, 3:39 PM=
syntax just feels wrong (because then you cannot use the direct field access anymore).Elie Abichar
11/16/2021, 5:02 PMThe compiler flag thing for using setters instead of fields when using the propertymakes sensesyntax just feels wrong=
maybe an IDE hint could be added that shows a public field is being used and not a setter.^ this was suggested before. because we dont have much control over the evolution of the poorly designed api, i believe this approach can greatly help us detect unintended usage. i can open a youtrack issue. thanks for looking into this.
Elie Abichar
11/16/2021, 7:50 PMephemient
11/16/2021, 9:48 PM