Files
openide/java/java-tests/testData/inspection/explicitArrayFilling/beforeByteArray.java
Artemiy Sartakov 0a9b74a5d5 ExplicitArrayFillingInspection: cast filled value if needed (IDEA-223102)
GitOrigin-RevId: b5e3b4ace9840968853f95ad80339d7084308d7a
2019-10-09 09:31:10 +00:00

11 lines
249 B
Java

// "Replace loop with 'Arrays.fill()' method call" "true"
class Test {
void fillByteArray() {
byte[] plaintext = {1,2,3,4,5};
for (<caret>int counter = 0; counter < plaintext.length; counter++) {
plaintext[counter] = 0;
}
}
}