mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
17 lines
494 B
HTML
17 lines
494 B
HTML
<html>
|
|
<body>
|
|
Reports comparisons with <code>String.indexOf()</code> calls
|
|
that can be replaced with a call to the <code>String.contains()</code> method.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
<b>boolean</b> b = "abcd".indexOf('e') >= 0;
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
<b>boolean</b> b = "abcd".contains('e');
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>This inspection only reports if the language level of the project or module is 5 or higher.</p>
|
|
|
|
</body>
|
|
</html> |