Closed bglamadrid closed 1 year ago
Hey @bglamadrid As far as my understanding, if we use the NoArgsConstructor annotation form lombok and mark this class as final, then it should solve the problem. Let me know if my understanding is correct and I can try to fix this.
Hi @ujwalkumar1995
Yes, making it final could also improve on the concept. But the important bit is to ensure the constructor is private. And @NoArgsConstructor
does have a way to generate that.
Don't hesitate to submit a PR if you want to, anyway 🙂 You don't have to nail everything down from the get-go, I (think I?) am pretty forgiving with my reviews.
Summary
Code Smell
Major
5min effort