Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

IntelliJ IDEA provides tools designed for static code analysis (so called code instectionsinspections) that help you maintain and clean up your code without actually executing it. In IntelliJ IDEA you will find a set of built-in inspections that are grouped by their goals and sense. For more information about code inspections, see Inspecting Source Code in IntelliJ IDEA Web Help.
You can create custom inspections through the IntelliJ IDEA interface (see Creating Own Inspections ). Alternatively, you can develop a plugin to implement a custom inspection.

...

The plugin inspects your code opened in the IntelliJ IDEA editor or the code you are typing. The plugin highlights the code fragments where two variables of the reference type are separated by == or != and proposes to replace this code fragment with * .equals():

In this example, the s1 and s2 are variables of the String type. Clicking Use equals() replaces

...