'How to make Data lombok return deep copys of getter method
Spotbugs is giving the following Error warnings:
[ERROR] Medium: MetaData.getCreatedAt() may expose internal representation by returning MetaData.createdAt [...MetaData] At MetaData.java:[line 21] EI_EXPOSE_REP
To solve this i think i have to return a deep copy of the "createdAt".
Is there a solution to solve this directly with @Data?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
