mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 13:55:00 +07:00
GitOrigin-RevId: f0a38046a71722f48f3ff1d59ea501259139237e
9 lines
238 B
Java
9 lines
238 B
Java
// "Adapt argument using 'Math.toIntExact()'" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Demo {
|
|
void test(List<?> list) {
|
|
List<Integer> intList2 = Collections.unmodifiableList(Collections.singletonList(Math.toIntExact(123L)));
|
|
}
|
|
}
|