Hi,
I am facing issue with sonar. sonar doesn’t recogize lombok annotations like @Data/@RequiredArgsConstructor.
It is complaining
- Malicious code - may expose internal representation by incorporating reference to
mutable object. - Malicious code - may expose internal representation by returning reference to mutable object.
Can anyone suggest me what I need to do for resolution?
I tried by adding dependency like sonar.java.libraries &
in lombok.config:-
config.stopBubbling = true
lombok.addLombokGeneratedAnnotation = true