Need to confirm false positive unused private fields if this issue is already resolved.
Code like this
import lombok.Data;
@Data
public class CandidateScheduling {
private String field10;
private String field11;
@Data
public static class SomeProps {
private String field20;
private String field21;
}
...
...
Generates " Unused “private” fields should be removed "
I confirmed my sonar.java.libraries and .binaries and checked the generated class to have getters, setters and annotations with @Generated
Maybe this is fixed in a newer version of SQ, can anyone confirm this, please?
Also, is there documentation we can reference regarding inline suppression of this issue and others? What would be the suppress statement for this?
Here are the versions in my setup
Sonarqube server Community Edition Version 8.9.8 (build 54436)
Sonarqube Gradle plugin id “org.sonarqube” version ‘3.5.0.2730’
Gradle 7.4
openjdk version “1.8.0_345”
OpenJDK Runtime Environment (Zulu 8.64.0.19-CA-macosx) (build 1.8.0_345-b01)
OpenJDK 64-Bit Server VM (Zulu 8.64.0.19-CA-macosx) (build 25.345-b01, mixed mode)