Files
openide/java/java-tests/testData/inspection/explicitArrayFilling/afterByteArray.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
205 B
Java

// "Replace loop with 'Arrays.fill()' method call" "true"
import java.util.Arrays;
class Test {
void fillByteArray() {
byte[] plaintext = {1,2,3,4,5};
Arrays.fill(plaintext, (byte) 0);
}
}