mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Cosmetics.
This commit is contained in:
parent
183fe7ba62
commit
aab2dfc32b
1 changed files with 74 additions and 79 deletions
|
@ -31,7 +31,6 @@ import org.eclipse.cdt.core.tests.BaseTestFramework;
|
|||
|
||||
import org.eclipse.cdt.internal.core.dom.SavedCodeReaderFactory;
|
||||
|
||||
|
||||
/**
|
||||
* @author markus.schorn@windriver.com
|
||||
*/
|
||||
|
@ -95,11 +94,9 @@ public class RefactoringTests extends BaseTestFramework {
|
|||
String name= edit.getName();
|
||||
if (name.indexOf("potential") != -1) { //$NON-NLS-1$
|
||||
count[1]++;
|
||||
}
|
||||
else if (name.indexOf("comment") != -1) { //$NON-NLS-1$
|
||||
} else if (name.indexOf("comment") != -1) { //$NON-NLS-1$
|
||||
count[2]++;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
count[0]++;
|
||||
}
|
||||
}
|
||||
|
@ -124,9 +121,9 @@ public class RefactoringTests extends BaseTestFramework {
|
|||
boolean found = false;
|
||||
Change[] children = composite.getChildren();
|
||||
for (int i = 0; i < children.length; i++) {
|
||||
if( children[i] instanceof CompositeChange )
|
||||
if (children[i] instanceof CompositeChange) {
|
||||
found = checkCompositeChange((CompositeChange) children[i], file, startOffset, numChars, newText, potential);
|
||||
else if( children[i] instanceof TextFileChange ){
|
||||
} else if (children[i] instanceof TextFileChange) {
|
||||
TextFileChange tuChange = (TextFileChange) children[i];
|
||||
if (tuChange.getFile().toString().equals(file.toString())) {
|
||||
found = checkTranslationUnitChange(tuChange, startOffset, numChars, newText, potential);
|
||||
|
@ -158,8 +155,7 @@ public class RefactoringTests extends BaseTestFramework {
|
|||
startOffset, numChars, newText)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (edit instanceof ReplaceEdit) {
|
||||
} else if (edit instanceof ReplaceEdit) {
|
||||
if (checkReplaceEdit((ReplaceEdit) edit, startOffset, numChars, newText)) {
|
||||
return true;
|
||||
}
|
||||
|
@ -270,5 +266,4 @@ public class RefactoringTests extends BaseTestFramework {
|
|||
status.getMessageMatchingSeverity(status.getSeverity()),
|
||||
status.getSeverity()==RefactoringStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue