Sonar cloud false positive with Lombok : Unused “private” fields should be removed

Sonar cloud seems not recognising lambok annotations getting maintainability issues Unused “private” fields should be removed even though lambook getter/setter annotations are available


any workarounds for this

1 Like

Hi @ThomasVThomas,

Thank you for reporting!

We are aware of this issue, and if the semantics are incomplete Lombok annotations are unknown.
Here is a ticket to track progress for fixing it: [SONARJAVA-4178] - Jira

All the best,

Irina.

1 Like

We have the same problem.

Using fully qualified annotations helped in our case:

@lombok.Getter
@lombok.Setter
3 Likes