mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
Merge branch 'master' of git@git.labs.intellij.net:idea/community
This commit is contained in:
+2
-1
@@ -41,7 +41,8 @@ public class StringLiteralManipulator extends AbstractElementManipulator<PsiLite
|
||||
}
|
||||
|
||||
public static TextRange getValueRange(PsiLiteralExpression element) {
|
||||
if (!(element.getValue() instanceof String)) return TextRange.from(0, element.getTextLength());
|
||||
final Object value = element.getValue();
|
||||
if (!(value instanceof String || value instanceof Character)) return TextRange.from(0, element.getTextLength());
|
||||
return new TextRange(1, Math.max(1, element.getTextLength() - 1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user