Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/wrapLongWithMathToIntExact/afterFewParameters.java
Tagir Valeev c81981ee75 [java-intentions] Rename 'Wrap using' fixes with 'Adapt using'.
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
2022-04-06 15:56:09 +00:00

13 lines
194 B
Java

// "Adapt 2nd argument using 'Math.toIntExact()'" "true"
public class Test {
void longMethod(int k, int thisIsInt) {
}
void m(long ll) {
longMethod(13, Math.toIntExact(ll));
}
}