Warnings and errors reported by this inspection aim to match 1:1 the warnings and errors reported by the Lombok annotation processor at compile-time, such as:
示例:
@ToString
class Person {
final String name;
final int age;
@Override
public String toString() {
return "Person{name='" + name + "', age=" + age + '}';
}
}
Quick-fix suggests removing the redundant annotation.
示例:
@Value
record Person(String name, int age) {}
Quick-fix suggests removing the invalid annotation.