SonarQube: 7.9.2.30863, SonarJava: 6.1 (build 20866)
Hi. I get a false positive when I use SonarQube together with lombok.
@EqualsAndHashCode(callSuper = false)
@Value
public class CustomException extends RuntimeException {
String customValue;
}
SonarQube finds an issue “java:S1165 Exception classes should be immutable”.
Since Lombok will make fields on classes annotated with @Value private and final i would argue that this is a false positive.