mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
missing image alt texts
This commit is contained in:
parent
3b8630cc5e
commit
8c70c95a26
@ -156,7 +156,7 @@ You can specify the Java classes to participate in the code inspection and the s
|
||||
On the main menu, open the <menupath>Settings/Preferences | Editor | Inspections</menupath> dialog.
|
||||
In the list of the IntelliJ IDEA <control>Java</control> inspections, expand the <control>Probable bugs</control> node, and then click <control>SDK: '==' or '!=' instead of 'equals()'</control>.
|
||||
|
||||

|
||||

|
||||
|
||||
Under <control>Options</control>, you can specify the following plugin settings:
|
||||
* From the <control>Severity</control> list, select the severity level of probable bugs the plugin finds such as <control>Warning</control>, <control>Error</control>, etc.
|
||||
@ -168,7 +168,7 @@ Under <control>Options</control>, you can specify the following plugin settings:
|
||||
The plugin inspects your code opened in the IntelliJ IDEA editor.
|
||||
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 `str1` and `str2` are variables of the String type.
|
||||
Clicking <control>SDK: Use equals()</control> replaces:
|
||||
|
@ -28,7 +28,7 @@ The [conditional_operator_intention](https://github.com/JetBrains/intellij-sdk-c
|
||||
|
||||
When launched, this plugin adds the <control>Convert ternary operator if statement</control> item to the <control>Conditional Operator</control> node in the Intentions List:
|
||||
|
||||

|
||||

|
||||
|
||||
#### Running the Plugin
|
||||
|
||||
@ -39,7 +39,7 @@ See [Code Samples](code_samples.md) on how to set up and run the plugin.
|
||||
The plugin analyzes symbols under the cursor in your code opened in the editor.
|
||||
If the cursor is positioned on the `?` conditional operator, IntelliJ IDEA proposes to replace this conditional (ternary) operator with the "if-then-else" statement:
|
||||
|
||||

|
||||

|
||||
|
||||
In this example, the code:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user