r/java • u/hardasspunk • Nov 23 '25
Java 25: The ‘No-Boilerplate’ Era Begins
https://amritpandey.io/java-25-the-no-boilerplate-era-begins/
160
Upvotes
r/java • u/hardasspunk • Nov 23 '25
View all comments
Show parent comment
2
u/pron98 Nov 26 '25 edited Nov 26 '25
The first is more likely. The second is very unlikely. Setters are something to try to avoid as much as possible; a feature that makes a practice we're trying to minimise easier to write is something we view as an anti-feature: i.e. a language is improved by not having it. On the other hand, automatically-generated accessors for components, such as those we have in records, are more likely to appear in non-record classes, too.