Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/onlyOneElementUsed/beforeArray.java
Tagir Valeev f19b3cd370 [java-inspections] IDEA-298718 Simplify array/list/string creation and immediate access
GitOrigin-RevId: 60df8ffa9aee53abf897e4fa6b42da4909a0e40b
2022-07-27 13:56:37 +00:00

6 lines
115 B
Java

// "Replace with '3'" "true-preview"
class Test {
void test() {
int x = new int[]{1,2,3,4,5}<caret>[2];
}
}