From 2f5e6277f058c24e4dfa298d502830be9eb807ac Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Tue, 3 Nov 2015 16:29:46 +0300 Subject: [PATCH] [groovy] get presentable text in GroovyExpressionTypeProvider. It is needed to properly display `as`-coercion trait types e.g. `Foo as T1, T2` instead of `Foo`. --- .../groovy/codeInsight/hint/GroovyExpressionTypeProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/GroovyExpressionTypeProvider.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/GroovyExpressionTypeProvider.java index 8408b4d746ab..5726f707d1b7 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/GroovyExpressionTypeProvider.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/GroovyExpressionTypeProvider.java @@ -31,7 +31,7 @@ public class GroovyExpressionTypeProvider extends ExpressionTypeProvider" : type.getCanonicalText()); + return StringUtil.escapeXml(type == null ? "" : type.getPresentableText()); } @NotNull