mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
testdata for IDEA-138752
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
|
||||
import java.util.Map;
|
||||
import static java.util.stream.Collectors.toMap;
|
||||
|
||||
class Test {
|
||||
Map<? extends Enum<?>, String> getValueByEnum() {
|
||||
return null;
|
||||
}
|
||||
|
||||
Map<String, ? extends Enum<?>> getEnumByValue() {
|
||||
return getValueByEnum().entrySet().stream()
|
||||
.collect(toMap(Map.Entry::getValue, Map.Entry::getKey));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user