Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/iterateOver/after2.java
Tagir Valeev 62f9692d64 [java] Improve quick-fixes on expression statements:
1. Put 'Iterate' and 'Introduce local variable' above 'Insert semicolon' where possible
2. Add 'Insert return' fix where possible (IDEA-267682)
3. Display type in 'Iterate' fix name (IDEA-267796)

GitOrigin-RevId: 08aa00adc0f7f1144c306a5dfdd279319b0af2ca
2021-04-23 15:24:05 +03:00

11 lines
198 B
Java

import java.lang.annotation.Annotation;
// "Iterate over Annotation[]" "true"
class Test {
void foo() {
for (Annotation annotation : getClass().getAnnotations()) {
}
}
}