mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
LambdaAndExplicitMethodPair: Arrays.setAll -> Arrays.fill pair added
Allows to make IDEA-185394 in two steps
This commit is contained in:
+14
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user