Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/beforeSuperEntrySet.java
Tagir Valeev 49f4397ba0 [java-intentions] More preview tests
GitOrigin-RevId: 4d6a5487576dbbc4aca9c89b067eec8218aff686
2022-07-29 17:55:15 +00:00

12 lines
364 B
Java

// "Replace iteration with bulk 'Map.putAll()' call" "true-preview"
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());
}
}
}