Reference: Code Inspections in IntelliJ SDK Docs
Comparing References Inspection Sample demonstrates the implementation of the Code Inspections feature for Java classes.
The plugin inspects your Java code and highlights any fragments containing the comparison of two String
or Date
variables.
If such a check finds a comparison using the ==
or !=
operators instead of the .equals()
method, the plugin proposes a quick-fix action.
Name | Implementation | Extension Point Class |
---|---|---|
com.intellij.localInspection |
ComparingReferencesInspection | AbstractBaseJavaLocalInspectionTool |
Reference: Plugin Extension Points in IntelliJ SDK Docs