mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
(no message)
This commit is contained in:
@@ -663,8 +663,8 @@ public class IntroduceParameterProcessor extends BaseRefactoringProcessor {
|
||||
return;
|
||||
}
|
||||
|
||||
PsiElement[] oldChildren = RefactoringUtil.getChilderenWithoutWhitespaceOrComments(oldExpr);
|
||||
PsiElement[] newChildren = RefactoringUtil.getChilderenWithoutWhitespaceOrComments(newExpr);
|
||||
PsiElement[] oldChildren = oldExpr.getChildren();
|
||||
PsiElement[] newChildren = newExpr.getChildren();
|
||||
|
||||
if (oldChildren != null && newChildren != null & oldChildren.length == newChildren.length) {
|
||||
for (int i = 0; i < oldChildren.length; i++) {
|
||||
|
||||
@@ -1393,16 +1393,6 @@ public class RefactoringUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static PsiElement[] getChilderenWithoutWhitespaceOrComments(PsiElement parent) {
|
||||
List<PsiElement> result = new ArrayList<PsiElement>();
|
||||
for (PsiElement current = parent.getFirstChild(); current != null; current = current.getNextSibling()) {
|
||||
if (!(current instanceof PsiWhiteSpace || current instanceof PsiComment)) {
|
||||
result.add(current);
|
||||
}
|
||||
}
|
||||
return result.toArray(new PsiElement[result.size()]);
|
||||
}
|
||||
|
||||
public static void processIncorrectOperation(final Project project, IncorrectOperationException e) {
|
||||
final String message = e.getMessage();
|
||||
final int index = message != null ? message.indexOf("java.io.IOException") : -1;
|
||||
|
||||
Reference in New Issue
Block a user