Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/wrapLongWithMathToIntExact/afterInLambda.java

18 lines
254 B
Java

// "Wrap using 'Math.toIntExact()'" "true"
import java.util.function.*;
public class Test {
void m() {
LongToIntFunction fn = x -> {
if(x > 0) {
return Math.toIntExact(x * 2);
}
return 0;
};
}
}