mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
StringEqualsEmptyString: changes according to review IDEA-CR-39275 (+comma after "For safety")
This commit is contained in:
@@ -4,9 +4,8 @@ Reports cases when <b>.equals()</b> is called to compare a String with an empty
|
||||
it shows you exactly what you're checking.
|
||||
<!-- tooltip end -->
|
||||
<p>
|
||||
Some checks, for example, the <b>"".equals(str)</b> check, return false when <b>str</b> is null. It means that an explicit null-check
|
||||
could be inserted when you are replacing <b>.equals()</b> with <b>isEmpty()</b>. Use a checkbox below to suppress the warning when a
|
||||
string value could be nullable.
|
||||
<b>"".equals(str)</b> returns false when <b>str</b> is null. For safety, this inspection's quick fix inserts an explicit null-check when
|
||||
the <b>equals()</b> argument is nullable. Use the checkbox below to suppress the warning in this case.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user