Clean up lombok annotations in API response models
See original GitHub issueWe can clean up and only annotate our API response models with the following lombok annotations: @EqualsAndHashCode and @ToString
For example:
@EqualsAndHashCode
@ToString
public final class FooResponse {
@Getter private final String value;
private final String description;
public FooResponse(
@NonNull final String value,
@Nullable final String description) {
this.name = checkNotBlank(value);
this.description = description;
}
public Optional<String> getDescription() {
return Optional.ofNullable(description);
}
}
NOTE: For a great API response model example, see DatasetResponse
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
@Cleanup - Project Lombok
You can use @Cleanup to ensure a given resource is automatically cleaned up before the code execution path exits your current scope. You...
Read more >Introduction to Project Lombok - Baeldung
A comprehensive and very practical introduction to many useful usecases of Project Lombok on standard Java code.
Read more >How To Use Lombok @Builder And @Data Annotations To ...
Lombok Builder is an annotation that creates complex builder APIs for your class. It can be used on a class, method level, or...
Read more >Gradle build fails on Lombok annotated classes - Stack Overflow
Thanks Ethan and Roel for your responses. I added more details to show I get compilation errors on getters/setters and log declarations. I...
Read more >When Should I Use Project Lombok? - Reflectoring
Clean Code. With Lombok, we can replace boiler-plate code with meaningful annotations. They help the developer focus on business logic. Lombok ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@wslulciuc , can you close this issue. thanks.
PS: with recent PR’s, I am following CONTRIBUTING.md to close the issue automatically upon PR approval
Fixed #573