LambdaAndExplicitMethodPair: Arrays.setAll -> Arrays.fill pair added

Allows to make IDEA-185394 in two steps
This commit is contained in:
Tagir Valeev
2018-01-24 13:37:55 +07:00
parent 3e3017f4f4
commit d828baf6e3
5 changed files with 43 additions and 3 deletions
@@ -0,0 +1,14 @@
// "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());
}
}