mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +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
18 lines
243 B
Java
18 lines
243 B
Java
// "Adapt using 'Math.toIntExact()'" "true"
|
|
import java.util.function.*;
|
|
|
|
public class Test {
|
|
|
|
void m() {
|
|
|
|
LongToIntFunction fn = x -> {
|
|
if(x > 0) {
|
|
return x<caret>*2;
|
|
}
|
|
return 0;
|
|
};
|
|
|
|
}
|
|
|
|
}
|