Can I use other annotations for Lombok annotations?
Suppose you have a Name field and want to make sure that it is not null when specified using annotations.
To Lombok
public class Person(){
String name;
@NotNull
public void setName(String newName){
name = newName;
}
}
After lombok
public class Person(){
@NotNull
@Setter
String name;
}
I know this is a very simple example, but is something like this possible?
source
share