mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IntroduceVariableBase: StringUtil.stripQuotesAroundValue restored (was actually necessary here)
This commit is contained in:
+4
-2
@@ -1116,11 +1116,13 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
|
||||
|
||||
LOG.assertTrue(parentRange.getStartOffset() <= rangeMarker.getStartOffset(), parent + "; prefix:" + prefix + "; suffix:" + suffix);
|
||||
String beg = allText.substring(parentRange.getStartOffset(), rangeMarker.getStartOffset());
|
||||
if (StringUtil.unquoteString(beg).trim().length() == 0 && prefix == null) beg = "";
|
||||
//noinspection SSBasedInspection (suggested replacement breaks behavior)
|
||||
if (StringUtil.stripQuotesAroundValue(beg).trim().length() == 0 && prefix == null) beg = "";
|
||||
|
||||
LOG.assertTrue(rangeMarker.getEndOffset() <= parentRange.getEndOffset(), parent + "; prefix:" + prefix + "; suffix:" + suffix);
|
||||
String end = allText.substring(rangeMarker.getEndOffset(), parentRange.getEndOffset());
|
||||
if (StringUtil.unquoteString(end).trim().length() == 0 && suffix == null) end = "";
|
||||
//noinspection SSBasedInspection (suggested replacement breaks behavior)
|
||||
if (StringUtil.stripQuotesAroundValue(end).trim().length() == 0 && suffix == null) end = "";
|
||||
|
||||
final String start = beg + (prefix != null ? prefix : "");
|
||||
refIdx[0] = start.length();
|
||||
|
||||
Reference in New Issue
Block a user