Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/beforeSuperEntrySet.java
Andrey.Cherkasov 91ddf5b7f4 [java-inspections] UseBulkOperation: fix quick-fix producing red code
(IDEA-278469)

GitOrigin-RevId: fc0695a4425b6c5ff009616f4e6529bfdd1c8f08
2021-10-20 09:11:30 +00:00

12 lines
354 B
Java

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