mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-33670 - diagnostics
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user