EA-33670 - diagnostics

This commit is contained in:
Maxim.Medvedev
2012-02-22 20:37:28 +04:00
parent e18b195d18
commit 05731c053e
@@ -188,8 +188,8 @@ public class GrLiteralImpl extends GrAbstractLiteral implements GrLiteral, PsiLa
public GrLiteralImpl updateText(@NotNull final String text) {
final GrExpression newExpr = GroovyPsiElementFactory.getInstance(getProject()).createExpressionFromText(text);
LOG.assertTrue(newExpr instanceof GrLiteral);
LOG.assertTrue(newExpr.getFirstChild() != null);
LOG.assertTrue(newExpr instanceof GrLiteral, text);
LOG.assertTrue(newExpr.getFirstChild() != null, text);
final ASTNode valueNode = getNode().getFirstChildNode();
getNode().replaceChild(valueNode, newExpr.getFirstChild().getNode());
return this;