1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-05-02 21:42:04 +00:00
parent e487384c29
commit e85fb0b135

View file

@ -61,7 +61,6 @@ public class AddBlockCommentTest extends BaseUITestCase {
int getOffset() throws BadLocationException { int getOffset() throws BadLocationException {
return fDoc.getLineOffset(line - 1) + position - 1; return fDoc.getLineOffset(line - 1) + position - 1;
} }
} }
@Override @Override
@ -98,10 +97,8 @@ public class AddBlockCommentTest extends BaseUITestCase {
* @param endLinePosition * @param endLinePosition
* @throws Exception * @throws Exception
*/ */
protected void assertFormatterResult( protected void assertFormatterResult(LinePosition startLinePosition, LinePosition endLinePosition)
LinePosition startLinePosition, throws Exception {
LinePosition endLinePosition) throws Exception {
StringBuffer[] contents= getContentsForTest(2); StringBuffer[] contents= getContentsForTest(2);
String before = contents[0].toString(); String before = contents[0].toString();
String after = contents[1].toString(); String after = contents[1].toString();
@ -121,7 +118,6 @@ public class AddBlockCommentTest extends BaseUITestCase {
assertEquals(expected, fDocument.get()); assertEquals(expected, fDocument.get());
} }
/** /**
* Run an action to comment block defined by line positions * Run an action to comment block defined by line positions
* and assert that the result matches the expected result. * and assert that the result matches the expected result.
@ -133,12 +129,8 @@ public class AddBlockCommentTest extends BaseUITestCase {
* @param after expected editor contents after the operation * @param after expected editor contents after the operation
* @throws Exception * @throws Exception
*/ */
protected void assertFormatterResult( protected void assertFormatterResult(LinePosition startLinePosition, LinePosition endLinePosition,
LinePosition startLinePosition, String before, String after) throws Exception {
LinePosition endLinePosition,
String before,
String after) throws Exception {
fDocument.set(before); fDocument.set(before);
SourceRange range = new SourceRange( startLinePosition.getOffset(), SourceRange range = new SourceRange( startLinePosition.getOffset(),
@ -291,7 +283,6 @@ public class AddBlockCommentTest extends BaseUITestCase {
assertFormatterResult(startSelection, endSelection); assertFormatterResult(startSelection, endSelection);
} }
//int i; //int i;
///*comment*/ ///*comment*/
//int j; //int j;