mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
IDEA-195069 Quick Fix: "Transform to mutable collection" in response to "Immutable object is modified" inspection
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Wrap 'integers' with 'ArrayList'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
void testComparator() {
|
||||
List<Integer> integers = List.of(4, 3, 2, 1);
|
||||
integers.so<caret>rt(Comparator.naturalOrder());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user