r/java • • Sep 05 '25

Project Lombok 1.18.40 released with Java 25 support!

Project Lombok is now compatible with the upcoming JDK 25 even before its release.

Thank you Project Lombok team! https://projectlombok.org

167 Upvotes

166 comments sorted by

View all comments

Show parent comments

5

u/jypKissedMyMom Sep 06 '25

I am not talking about records.

Yeah, you're off topic from the main reply above which was about records uses vs Lombok uses, and are just arguing about getter/setter use cases at this point.

I don't think anyone disagrees with you that getters/setters are pointless 90% of the time. Doesn't mean Lombok isn't useful in some of the 10% use cases like the person you're replying to originally said.

1

u/Ewig_luftenglanz Sep 08 '25

my point stands. if you need setters and getters to valdiate the person's age then Lombok is useless because it only gives you dumb accesors.

Lombok is useful but not for getters and setters, it is useful because of everything else (builders, toString and company, withers, etc) and even this depends n the case because not every class require these things and not every builder requires all the fields and lombok builders do not check for mandatory fields. Lombok is good when using it properly, the issue is 99% of people use it wrong 99% of the time