line / armeria

Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
https://armeria.dev
Apache License 2.0
4.82k stars 915 forks source link

Kotlin / Lombok / Immutables to reduce getter/setters? #2419

Open OneCricketeer opened 4 years ago

OneCricketeer commented 4 years ago

There is a fair amount of getter/setters that could be removed with the following options

trustin commented 4 years ago

Do you have a specific class you have in mind? We've been refraining from using such code generation options because:

OneCricketeer commented 4 years ago

Do you have a specific class you have in mind?

Mostly the low-hanging POJO classes. E.g. I don't see any JavaDoc on this

trustin commented 4 years ago

Ah, yeah. Internal classes could be candidates. But not the public classes.

OneCricketeer commented 4 years ago

Also - https://blog.scottlogic.com/2020/01/03/rethinking-the-java-dto.html