diff --git a/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/structure/impl/JavaClassifierTypeImpl.java b/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/structure/impl/JavaClassifierTypeImpl.java index 5cf409eb80b..e5485edd124 100644 --- a/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/structure/impl/JavaClassifierTypeImpl.java +++ b/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/structure/impl/JavaClassifierTypeImpl.java @@ -69,7 +69,9 @@ public class JavaClassifierTypeImpl extends JavaTypeImpl implement } @NotNull - private Map convertSubstitutionMap(@NotNull Map psiMap) { + private static Map convertSubstitutionMap(@NotNull Map psiMap) { + if (psiMap.isEmpty()) return Collections.emptyMap(); + Map substitutionMap = new HashMap(); for (Map.Entry entry : psiMap.entrySet()) { PsiType value = entry.getValue();