mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
Not everything is actually wrapping. E.g., converting 'long' to 'int' via 'Math.toIntExact' is definitely not wrapping. The 'adapt' word looks more abstract and suitable for all the cases. GitOrigin-RevId: 33e56b6e16a0362598ac8e3fc92ef2808a77dbe0
14 lines
246 B
Java
14 lines
246 B
Java
// "Adapt using 'Collections.singletonList()'" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
List<Throwable> test() {
|
|
try {
|
|
System.out.println();
|
|
}
|
|
catch (Exception | Error ex) {
|
|
return e<caret>x;
|
|
}
|
|
return null;
|
|
}
|
|
} |