Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-11-29 21:11:24 +0000
committerMarkus Keller2015-12-01 01:50:38 +0000
commit64b34b614087b96e6cc92c72143768b98ae32602 (patch)
tree4f4f493fd8161f9a5885f11021cd14a923946e9f /org.eclipse.ui.workbench.texteditor.tests
parentf01dd079500e382823d5d1767996cb9ef85233ee (diff)
downloadeclipse.platform.text-64b34b614087b96e6cc92c72143768b98ae32602.tar.gz
eclipse.platform.text-64b34b614087b96e6cc92c72143768b98ae32602.tar.xz
eclipse.platform.text-64b34b614087b96e6cc92c72143768b98ae32602.zip
Bug 478673: added @Override/@Deprecated and removed non-Javadoc boilerplate
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor.tests')
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java1
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java4
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/ChangeRegionTest.java8
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java10
4 files changed, 17 insertions, 6 deletions
diff --git a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java
index 9c971d226..92008e3be 100644
--- a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java
+++ b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java
@@ -88,6 +88,7 @@ public class FindReplaceDialogTest extends TestCase {
fFindReplaceDialog= new Accessor(fFindReplaceDialogStubAccessor.invoke("getDialog", null), "org.eclipse.ui.texteditor.FindReplaceDialog", getClass().getClassLoader());
}
+ @Override
protected void tearDown() throws Exception {
if (fFindReplaceDialog != null) {
fFindReplaceDialog.invoke("close", null);
diff --git a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java
index 54df79081..3d3359472 100644
--- a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java
+++ b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java
@@ -45,9 +45,7 @@ public class HippieCompletionTest extends TestCase {
super(name);
}
- /*
- * @see junit.framework.TestCase#setUp()
- */
+ @Override
protected void setUp() throws Exception {
documents= new IDocument[5];
documents[0]= new Document("package ui.TestPackage;\n" +
diff --git a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/ChangeRegionTest.java b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/ChangeRegionTest.java
index 98e30ad6e..1ddac364e 100644
--- a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/ChangeRegionTest.java
+++ b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/ChangeRegionTest.java
@@ -36,18 +36,22 @@ public class ChangeRegionTest extends TestCase {
}
public static final class TestRevision extends Revision {
+ @Override
public Object getHoverInfo() {
return null;
}
+ @Override
public RGB getColor() {
return null;
}
+ @Override
public String getId() {
return null;
}
+ @Override
public Date getDate() {
return null;
}
@@ -55,9 +59,7 @@ public class ChangeRegionTest extends TestCase {
private Revision fRevision;
- /*
- * @see junit.framework.TestCase#setUp()
- */
+ @Override
protected void setUp() throws Exception {
fRevision= new TestRevision();
}
diff --git a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java
index be9657498..3b4773ec2 100644
--- a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java
+++ b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java
@@ -38,45 +38,55 @@ public class HunkComputerTest extends TestCase {
private int[] fDiffInformation;
private ILineDiffer fDiffer= new ILineDiffer() {
+ @Override
public ILineDiffInfo getLineInfo(final int line) {
return new ILineDiffInfo() {
+ @Override
public int getChangeType() {
return fDiffInformation[line * 2];
}
+ @Override
public String[] getOriginalText() {
throw new UnsupportedOperationException();
}
+ @Override
public int getRemovedLinesAbove() {
return fDiffInformation[line * 2 + 1];
}
+ @Override
public int getRemovedLinesBelow() {
if (fRemovedBelow == null)
return 0;
return fRemovedBelow[line];
}
+ @Override
public boolean hasChanges() {
throw new UnsupportedOperationException();
}
};
}
+ @Override
public int restoreAfterLine(int line) throws BadLocationException {
throw new UnsupportedOperationException();
}
+ @Override
public void revertBlock(int line) throws BadLocationException {
throw new UnsupportedOperationException();
}
+ @Override
public void revertLine(int line) throws BadLocationException {
throw new UnsupportedOperationException();
}
+ @Override
public void revertSelection(int line, int nLines) throws BadLocationException {
throw new UnsupportedOperationException();
}

Back to the top