mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-61137 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText
This commit is contained in:
@@ -639,13 +639,15 @@ public class JavaDocInfoGenerator {
|
||||
String text = o.toString();
|
||||
PsiType type = variable.getType();
|
||||
if (type.equalsToText(CommonClassNames.JAVA_LANG_STRING)) {
|
||||
text = "\"" + StringUtil.escapeLineBreak(StringUtil.shortenPathWithEllipsis(text, 120)) + "\"";
|
||||
text = "\"" + StringUtil.escapeStringCharacters(StringUtil.shortenPathWithEllipsis(text, 120)) + "\"";
|
||||
}
|
||||
else if (type.equalsToText("char")) {
|
||||
text = "'" + text + "'";
|
||||
}
|
||||
else if (type.equalsToText("char")) text = "'" + text + "'";
|
||||
try {
|
||||
return instance.getElementFactory().createExpressionFromText(text, variable);
|
||||
} catch (IncorrectOperationException ex) {
|
||||
LOG.error(text, ex);
|
||||
LOG.info("type:" + type.getCanonicalText() + "; text: " + text, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user