FP S1068 and lombok

Hi,

For - SonarCloud 10.4.1

I have reported: S1068 - Unused “private” fields should be removed

My code:

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public class Example {
        private boolean enabled;
        private String username;
        private String password;
    }

It is only reported by SonarQube - the same code not produce issues in IntelJ with SonarLint - 10.4.1.77998

Issues was not reported by SonarQube 9.x

Hello @slawekjaranowski,

Thanks for your report. I tried to reproduce your issue in SL, SQ and SC (SonarCloud) but I can’t.

Since you also confirm that there’s no issue in SL. There could be something with your configuration.

The best way would be if you could provide me with a small project reproducer and share the logs.

Best,
Margarita