Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/patchMethodParams/afterWrapToIntExact2.java
Tagir Valeev 8a9959167b [java-intentions] IDEA-299075 Better quick-fixes when generic method call has mismatched type
GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
2022-08-01 18:23:39 +00:00

9 lines
229 B
Java

// "Adapt using 'Math.toIntExact()'" "true-preview"
import java.util.*;
class Demo {
void test(List<?> list) {
List<Integer> intList2 = Collections.unmodifiableList(Collections.singletonList(Math.toIntExact(123L)));
}
}