During a simple use of lombok, IDEs such as Netbeans, Intellij allows the use of methods injected by the library lombok for example @Getter & @Setter.
import lombok.Getter;
public class Test {
@Getter
private Double var;
public Double calculTva(double tva) {
return this.getVar() * tva;
}
}
The code return this.getVar() is not recognized by the Test class. But if we use an another class, for example Test2, in this case we can use the getter method.
public class Test2 {
public Double calculTva(double tva) {
Test t =new Test();
return t.getVar() * tva;
}
}
Environnement :
In your NetBeans IDE, follow this instructions :