Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/beforeQualifiedSuperEntrySet.java
Andrey.Cherkasov b66b76939f [java-inspections] UseBulkOperation: preserve the qualifier of PsiSuperExpression if it exists (IJ-CR-15560)
GitOrigin-RevId: 2fcf4eddd6b43963ba93c5a4c1ae413d9be18b10
2021-10-27 03:40:18 +00:00

14 lines
392 B
Java

// "Replace iteration with bulk 'Map.putAll' call" "true"
import java.util.HashMap;
import java.util.Map;
class Main extends HashMap<String, Integer> {
class Nested {
void test() {
Map<String, Integer> result = new HashMap<>();
for (Map.Entry<String, Integer> entry : Main.super.entrySet()) {
result.pu<caret>t(entry.getKey(), entry.getValue());
}
}
}
}