Lombok annotations
Offers general inspections for Lombok annotations.
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:
Redundantly applied annotation (reported as a warning)
Example:
@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.
Incorrectly applied annotation (reported as an error)
Example:
@Value record Person(String name, int age) {}Quick-fix suggests removing the invalid annotation.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
Lombok- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection ID: Lombok
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |