EA-47034 (diagnostic expression fixed)

This commit is contained in:
Roman Shevchenko
2013-07-02 15:58:23 +02:00
parent 1072cf8297
commit 316ab18b26
@@ -35,7 +35,8 @@ public class ClsAnnotationParameterListImpl extends ClsElementImpl implements Ps
String name = psiAttributes[i].getName();
PsiAnnotationMemberValue value = psiAttributes[i].getValue();
if (value == null) {
Logger.getInstance(getClass()).error("name=" + name + " value=" + value + " anno=[" + parent.getText() + "]");
String anno = parent instanceof ClsAnnotationImpl ? ((ClsAnnotationImpl)parent).getStub().getText() : parent.getText();
Logger.getInstance(getClass()).error("name=" + name + " anno=[" + anno + "]");
value = new ClsLiteralExpressionImpl(this, "null", PsiType.NULL, null);
}
myAttributes[i] = new ClsNameValuePairImpl(this, name, value);