mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java-inspections] UseBulkOperation: preserve the qualifier of PsiSuperExpression if it exists (IJ-CR-15560)
GitOrigin-RevId: 2fcf4eddd6b43963ba93c5a4c1ae413d9be18b10
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5f368dfa9d
commit
b66b76939f
@@ -0,0 +1,12 @@
|
||||
// "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<>();
|
||||
result.putAll(Main.this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user