News for hackers. Stuff that matters.
Re:Data Classes for Java by flukus on Wednesday November 01, 2017 @09:07PM (#15607009)
Then I'd change it to a property and recompile. If it's value comes from the database or a web service then nothing has to change, whatever is calling the service will invoke the constructor as always.

The only exception here is for public APIs, but that's a minority of projects.

Re:Data Classes for Java by zmmmmm on Thursday November 02, 2017 @05:58AM (#15609035)
> Then I'd change it to a property and recompile

You mean, change it to a property, then fix dozens or hundreds of references, possibly in downstream dependencies some of which aren't under your control and can't be changed. Sounds fun.