I'm using lombok in my project and I have an interface :
public interface MyInterface{
Object getA()
}
And a class
@Getter
public class MyClass implements MyInterface{
private Object a;
private Object b
}
And i've checked the generated class and the method generated in the class is not @Override
I'm wondering how to add this annotation ? And what are the consequences of a missing @Override ?
It's maybe an another question but this code is analyzed by sonarqube and sonar say that private field a is never used.
I've already seen the subject about sonarqube + lombok = false positives
But In my case b doesn't create a false positive. So I don't think this is directly related
Do you see a solution to avoid this problems without reimplement getA() ?