(no message)

This commit is contained in:
Eugene Vigdorchik
2005-02-02 19:03:35 +03:00
parent c037d89887
commit d3116c4a1b
2 changed files with 2 additions and 12 deletions
@@ -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;