Java
'Collections.sort()' can be replaced with 'List.sort()'
Warning
New
Last modified: 03 December 2024 Reports calls of Collections.sort(list, comparator)
which can be replaced with list.sort(comparator)
.
Collections.sort
is just a wrapper, so it is better to use an instance method directly.
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
Java8ListSort
This inspection depends on the Java feature 'Lambda methods in collections', which is available since Java 8.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?