From dfea8dd1b42f8386b00b123be9abc1e862b01e2f Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 22 Oct 2012 16:12:24 +0200 Subject: [PATCH] assert valid subsitutor (EA-40178) --- .../codeInsight/hint/api/impls/MethodParameterInfoHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java b/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java index 2241b04a3f88..b4232c6cd9c7 100644 --- a/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java +++ b/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java @@ -345,6 +345,7 @@ public class MethodParameterInfoHandler implements ParameterInfoHandlerWithTabAc if (!method.isConstructor()) { PsiType returnType = method.getReturnType(); if (substitutor != null) { + assert substitutor.isValid(); returnType = substitutor.substitute(returnType); } @@ -372,6 +373,7 @@ public class MethodParameterInfoHandler implements ParameterInfoHandlerWithTabAc PsiType paramType = param.getType(); assert paramType.isValid(); if (substitutor != null) { + assert substitutor.isValid(); paramType = substitutor.substitute(paramType); } appendModifierList(buffer, param);