mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
* switch to 242, update gh-ic links * fix link * fix link * fix link * fix link * regen EP lists still some diff between 242 and EAP8 * convert gh-ic-master links * GH code-samples: update PV IDE versions * code samples: adjust target IDE&since/until values * regen EP lists from release branch * intellij_community_plugins_extension_point_list.md: fix duplicate heading * intellij_community_plugins_extension_point_list.md: fix DevKit.lang.visitorProviderForRBCInspection EP * GH: update PV versions * 2024.2 GA
Comparing References Inspection Sample 
Reference: Code Inspections in IntelliJ SDK Docs
Quickstart
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
variables.
If such a check finds a comparison using the ==
or !=
operators instead of the .equals()
method, the plugin proposes a quick fix action.
Extension Points
Name | Implementation | Extension Point Class |
---|---|---|
com.intellij.localInspection |
ComparingStringReferencesInspection | AbstractBaseJavaLocalInspectionTool |
Reference: Plugin Extension Points in IntelliJ SDK Docs