Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/explicitArgumentCanBeLambda/beforeArraysSetAll.java
Tagir Valeev d828baf6e3 LambdaAndExplicitMethodPair: Arrays.setAll -> Arrays.fill pair added
Allows to make IDEA-185394 in two steps
2018-01-24 13:37:55 +07:00

14 lines
304 B
Java

// "Use 'setAll' method with functional argument" "false"
import java.util.Arrays;
class Test {
int computeValue() {
return 0;
}
public void test(int[] arr) {
// Should not suggest setAll replacement as lambda might be called many times
Arrays.fill(arr, co<caret>mputeValue());
}
}