blob: f25452495b524646284de9799355388ed8a02ed3 [file]
<html>
<body>
Reports <b>List.remove(index)</b> called in a loop, which can be replaced with <b>List.subList().clear()</b>. The replacement
is more efficient for most List implementations, when many elements are deleted.
<p>
The quick-fix adds a range-check automatically to prevent a possible <b>IndexOutOfBoundsException</b> when the minimal value is bigger
than the maximal value. It can be removed if such a situation is impossible in your code.
</p>
<!-- tooltip end -->
<p><small>New in 2018.2</small></p>
</body>
</html>