testdata for IDEA-138752

This commit is contained in:
Anna Kozlova
2015-10-02 21:28:18 +02:00
parent 2d27bff5ad
commit 75c14f25b6
2 changed files with 18 additions and 0 deletions

View File

@@ -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));
}
}