mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
20 lines
697 B
HTML
20 lines
697 B
HTML
<html>
|
|
<body>
|
|
Reports <b>boxed</b> <code>Range.start</code> and <code>Range.endInclusive</code> properties.
|
|
<p>These properties can be replaced with <b>unboxed</b> <code>first</code> and <code>last</code> properties to avoid redundant calls.</p>
|
|
<p>The quick-fix replaces <code>start</code> and <code>endInclusive</code> properties with the corresponding <code>first</code> and <code>last</code>.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
fun foo(range: CharRange) {
|
|
val lastElement = range.endInclusive
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
fun foo(range: CharRange) {
|
|
val lastElement = range.last
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |