From 2ad42e1a59cadec04f75b7a3c78b4ab5488467a9 Mon Sep 17 00:00:00 2001 From: ikopysov Date: Fri, 30 Oct 2020 04:32:05 +0300 Subject: [PATCH] Changed to explicit types, due to rollback to java 8 --- .../languages/scala/CustomScalaStringPostfixTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/endrullis/idea/postfixtemplates/languages/scala/CustomScalaStringPostfixTemplate.java b/src/de/endrullis/idea/postfixtemplates/languages/scala/CustomScalaStringPostfixTemplate.java index 7b49874c..45a1d2bf 100644 --- a/src/de/endrullis/idea/postfixtemplates/languages/scala/CustomScalaStringPostfixTemplate.java +++ b/src/de/endrullis/idea/postfixtemplates/languages/scala/CustomScalaStringPostfixTemplate.java @@ -36,7 +36,7 @@ public class CustomScalaStringPostfixTemplate extends ScalaStringBasedPostfixTem static final Pattern IMPORT_PATTERN = Pattern.compile("\\[IMPORT ([^\\]]+)\\]"); - private static final Map> type2psiCondition = new HashMap<>() {{ + private static final Map> type2psiCondition = new HashMap>() {{ put(SpecialType.ANY.name(), e -> true); put(SpecialType.VOID.name(), VOID); put(SpecialType.NON_VOID.name(), NON_VOID);