Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
explicitArrayFilling
/
beforeTernaryWithMutable.java
blob: 0f1162897a46df21fdd6b49ba706579b1514121d [
file
]
// "Replace loop with 'Arrays.setAll()' method call" "true"
class
Test
{
void
test
(
boolean
choice
)
{
Object
[]
arr
=
new
Object
[
10
];
for
(<
caret
>
int
i
=
0
;
i
<
arr
.
length
;
i
++)
{
arr
[
i
]
=
(
choice
?
"foo"
:
new
Object
());
}
}
}