mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEADEV-2789
This commit is contained in:
@@ -737,7 +737,9 @@ public class ExtractMethodProcessor implements MatchProvider {
|
||||
if(variable instanceof ImplicitVariable) return false;
|
||||
int startOffset = myElements[0].getTextRange().getStartOffset();
|
||||
int endOffset = myElements[myElements.length - 1].getTextRange().getEndOffset();
|
||||
int offset = variable.getNameIdentifier().getTextRange().getStartOffset();
|
||||
final TextRange range = variable.getNameIdentifier().getTextRange();
|
||||
if (range == null) return false;
|
||||
int offset = range.getStartOffset();
|
||||
return startOffset <= offset && offset <= endOffset;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user