Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-11-29 16:11:24 -0500
committerMarkus Keller2015-11-30 20:50:38 -0500
commit64b34b614087b96e6cc92c72143768b98ae32602 (patch)
tree4f4f493fd8161f9a5885f11021cd14a923946e9f /org.eclipse.jface.text.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.jface.text.tests')
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java5
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java8
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultUndoManagerTest.java5
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java3
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TestTextViewer.java53
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextHoverPopupTest.java2
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java1
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java11
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java8
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerTest.java5
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerZeroLengthTest.java1
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java1
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/ScannerColumnTest.java2
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/WordRuleTest.java4
14 files changed, 92 insertions, 17 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
index 95abf6811..6108c2240 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
@@ -488,22 +488,27 @@ public abstract class AbstractPairMatcherTest extends TestCase {
fString= str;
}
+ @Override
public char get(int offset) {
return fString.charAt(offset);
}
+ @Override
public String get(int offset, int length) {
return fString.substring(offset, offset + length);
}
+ @Override
public int getLength() {
return fString.length();
}
+ @Override
public void replace(int offset, int length, String text) {
throw new UnsupportedOperationException();
}
+ @Override
public void set(String text) {
fString= text;
}
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
index 42915499c..78c88a49d 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
@@ -58,9 +58,7 @@ public abstract class AbstractUndoManagerTest extends TestCase {
super(name);
}
- /*
- * @see TestCase#setUp()
- */
+ @Override
protected void setUp() {
fShell= new Shell();
fUndoManager= createUndoManager(MAX_UNDO_LEVEL);
@@ -71,9 +69,7 @@ public abstract class AbstractUndoManagerTest extends TestCase {
abstract protected IUndoManager createUndoManager(int maxUndoLevel);
- /*
- * @see TestCase#tearDown()
- */
+ @Override
protected void tearDown() {
fUndoManager.disconnect();
fUndoManager= null;
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultUndoManagerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultUndoManagerTest.java
index e6819c7ec..c087c0cb9 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultUndoManagerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultUndoManagerTest.java
@@ -34,10 +34,7 @@ public class DefaultUndoManagerTest extends AbstractUndoManagerTest {
super(name);
}
- /*
- * @see org.eclipse.jface.text.tests.AbstractUndoManagerTest#createUndoManager(int)
- * @since 3.2
- */
+ @Override
protected IUndoManager createUndoManager(int maxUndoLevel) {
return new DefaultUndoManager(maxUndoLevel);
}
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
index 12aef7b69..2c9fc3da7 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
@@ -53,6 +53,7 @@ public class HTML2TextReaderTest extends TestCase {
* @throws IOException
* @deprecated pass actual style ranges
*/
+ @Deprecated
private void verify(String input, String expectedOutput, int styleRangeCount) throws IOException {
Reader reader= new StringReader(input);
TextPresentation textPresentation= new TextPresentation();
@@ -71,6 +72,7 @@ public class HTML2TextReaderTest extends TestCase {
assertEquals("Incorrect number of style ranges", styleRangeCount, ranges.size());
Collections.sort(ranges, new Comparator() {
+ @Override
public int compare(Object o1, Object o2) {
StyleRange range1= (StyleRange)o1;
StyleRange range2= (StyleRange)o2;
@@ -105,6 +107,7 @@ public class HTML2TextReaderTest extends TestCase {
}
Collections.sort(ranges, new Comparator() {
+ @Override
public int compare(Object o1, Object o2) {
StyleRange range1= (StyleRange)o1;
StyleRange range2= (StyleRange)o2;
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TestTextViewer.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TestTextViewer.java
index 41859b308..7a1bc8022 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TestTextViewer.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TestTextViewer.java
@@ -60,6 +60,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#setDocument(IDocument, int, int)
*/
+ @Override
public void setDocument(IDocument document, int p1, int p2) {
setDocument(document);
}
@@ -67,6 +68,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getDocument()
*/
+ @Override
public IDocument getDocument() {
return fDocument;
}
@@ -74,6 +76,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#setDocument(IDocument)
*/
+ @Override
public void setDocument(IDocument document) {
IDocument oldDoc= fDocument;
fireTextInputChanged(oldDoc, document, true);
@@ -94,6 +97,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#removeTextInputListener(ITextInputListener)
*/
+ @Override
public void removeTextInputListener(ITextInputListener listener) {
fInputListeners.remove(listener);
}
@@ -101,6 +105,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#addTextInputListener(ITextInputListener)
*/
+ @Override
public void addTextInputListener(ITextInputListener listener) {
if (!fInputListeners.contains(listener))
fInputListeners.add(listener);
@@ -120,6 +125,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#changeTextPresentation(TextPresentation, boolean)
*/
+ @Override
public void changeTextPresentation(TextPresentation presentation, boolean p1) {
fTextPresentation= presentation;
}
@@ -127,6 +133,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#invalidateTextPresentation()
*/
+ @Override
public void invalidateTextPresentation() {
}
@@ -134,6 +141,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
return fTextPresentation;
}
+ @Override
public void documentAboutToBeChanged(DocumentEvent event) {
try {
fDeletion= fDocument.get(event.getOffset(), event.getLength());
@@ -141,6 +149,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
}
}
+ @Override
public void documentChanged(DocumentEvent event) {
fireTextChanged(new TestTextEvent(event, fDeletion));
}
@@ -148,6 +157,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getFindReplaceTarget()
*/
+ @Override
public IFindReplaceTarget getFindReplaceTarget() {
return null;
}
@@ -155,6 +165,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getTextOperationTarget()
*/
+ @Override
public ITextOperationTarget getTextOperationTarget() {
return null;
}
@@ -162,18 +173,21 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#setTextColor(Color, int, int, boolean)
*/
+ @Override
public void setTextColor(Color p0, int p1, int p2, boolean p3) {
}
/**
* @see ITextViewer#setTextColor(Color)
*/
+ @Override
public void setTextColor(Color p0) {
}
/**
* @see ITextViewer#overlapsWithVisibleRegion(int, int)
*/
+ @Override
public boolean overlapsWithVisibleRegion(int p0, int p1) {
return false;
}
@@ -181,6 +195,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getVisibleRegion()
*/
+ @Override
public IRegion getVisibleRegion() {
return null;
}
@@ -188,70 +203,82 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#resetVisibleRegion()
*/
+ @Override
public void resetVisibleRegion() {
}
/**
* @see ITextViewer#setVisibleRegion(int, int)
*/
+ @Override
public void setVisibleRegion(int p0, int p1) {
}
/**
* @see ITextViewer#setIndentPrefixes(String[], String)
*/
+ @Override
public void setIndentPrefixes(String[] p0, String p1) {
}
/**
* @see ITextViewer#setDefaultPrefixes(String[], String)
*/
+ @Override
public void setDefaultPrefixes(String[] p0, String p1) {
}
/**
* @see ITextViewer#setAutoIndentStrategy(IAutoIndentStrategy, String)
*/
+ @Override
public void setAutoIndentStrategy(IAutoIndentStrategy p0, String p1) {
}
/**
* @see ITextViewer#setTextDoubleClickStrategy(ITextDoubleClickStrategy, String)
*/
+ @Override
public void setTextDoubleClickStrategy(ITextDoubleClickStrategy p0, String p1) {
}
/**
* @see ITextViewer#setUndoManager(IUndoManager)
*/
+ @Override
public void setUndoManager(IUndoManager p0) {
}
/**
* @see ITextViewer#getTextWidget()
*/
+ @Override
public StyledText getTextWidget() {
return null;
}
+ @Override
public void setTextHover(ITextHover p0, String p1) {
}
/**
* @see ITextViewer#activatePlugins()
*/
+ @Override
public void activatePlugins() {
}
/**
* @see ITextViewer#resetPlugins()
*/
+ @Override
public void resetPlugins() {
}
/**
* @see ITextViewer#getTopInset()
*/
+ @Override
public int getTopInset() {
return 0;
}
@@ -259,6 +286,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getBottomIndexEndOffset()
*/
+ @Override
public int getBottomIndexEndOffset() {
return 0;
}
@@ -266,6 +294,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getBottomIndex()
*/
+ @Override
public int getBottomIndex() {
return 0;
}
@@ -273,6 +302,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getTopIndexStartOffset()
*/
+ @Override
public int getTopIndexStartOffset() {
return 0;
}
@@ -280,6 +310,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#getTopIndex()
*/
+ @Override
public int getTopIndex() {
return 0;
}
@@ -287,18 +318,21 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#setTopIndex(int)
*/
+ @Override
public void setTopIndex(int p0) {
}
/**
* @see ITextViewer#revealRange(int, int)
*/
+ @Override
public void revealRange(int p0, int p1) {
}
/**
* @see ITextViewer#getSelectedRange()
*/
+ @Override
public Point getSelectedRange() {
return fSelection;
}
@@ -306,6 +340,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#setSelectedRange(int, int)
*/
+ @Override
public void setSelectedRange(int offset, int length) {
fSelection.x= offset;
fSelection.y= length;
@@ -314,6 +349,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#isEditable()
*/
+ @Override
public boolean isEditable() {
return true;
}
@@ -321,18 +357,21 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#setEditable(boolean)
*/
+ @Override
public void setEditable(boolean p0) {
}
/**
* @see ITextViewer#setEventConsumer(IEventConsumer)
*/
+ @Override
public void setEventConsumer(IEventConsumer p0) {
}
/**
* @see ITextViewer#removeTextListener(ITextListener)
*/
+ @Override
public void removeTextListener(ITextListener listener) {
fTextListeners.remove(listener);
}
@@ -348,6 +387,7 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#addTextListener(ITextListener)
*/
+ @Override
public void addTextListener(ITextListener listener) {
if (!fTextListeners.contains(listener))
fTextListeners.add(listener);
@@ -356,18 +396,21 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ITextViewer#removeViewportListener(IViewportListener)
*/
+ @Override
public void removeViewportListener(IViewportListener p0) {
}
/**
* @see ITextViewer#addViewportListener(IViewportListener)
*/
+ @Override
public void addViewportListener(IViewportListener p0) {
}
/**
* @see ISourceViewer#getSelectionProvider()
*/
+ @Override
public ISelectionProvider getSelectionProvider() {
return null;
}
@@ -375,18 +418,21 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ISourceViewer#showAnnotations(boolean)
*/
+ @Override
public void showAnnotations(boolean p0) {
}
/**
* @see ISourceViewer#removeRangeIndication()
*/
+ @Override
public void removeRangeIndication() {
}
/**
* @see ISourceViewer#getRangeIndication()
*/
+ @Override
public IRegion getRangeIndication() {
return null;
}
@@ -394,18 +440,21 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ISourceViewer#setRangeIndication(int, int, boolean)
*/
+ @Override
public void setRangeIndication(int p0, int p1, boolean p2) {
}
/**
* @see ISourceViewer#setRangeIndicator(Annotation)
*/
+ @Override
public void setRangeIndicator(Annotation p0) {
}
/**
* @see ISourceViewer#getAnnotationModel()
*/
+ @Override
public IAnnotationModel getAnnotationModel() {
return null;
}
@@ -413,24 +462,28 @@ public class TestTextViewer implements ISourceViewer, IDocumentListener {
/**
* @see ISourceViewer#setDocument(IDocument, IAnnotationModel, int, int)
*/
+ @Override
public void setDocument(IDocument p0, IAnnotationModel p1, int p2, int p3) {
}
/**
* @see ISourceViewer#setDocument(IDocument, IAnnotationModel)
*/
+ @Override
public void setDocument(IDocument p0, IAnnotationModel p1) {
}
/**
* @see ISourceViewer#setAnnotationHover(IAnnotationHover)
*/
+ @Override
public void setAnnotationHover(IAnnotationHover p0) {
}
/**
* @see ISourceViewer#configure(SourceViewerConfiguration)
*/
+ @Override
public void configure(SourceViewerConfiguration p0) {
}
}
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextHoverPopupTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextHoverPopupTest.java
index 271067be8..bd791bd0d 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextHoverPopupTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextHoverPopupTest.java
@@ -22,6 +22,7 @@ public class TextHoverPopupTest extends TestCase {
super(name);
}
+ @Override
protected void setUp() {
}
@@ -29,6 +30,7 @@ public class TextHoverPopupTest extends TestCase {
return new TestSuite(TextHoverPopupTest.class);
}
+ @Override
protected void tearDown() {
}
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java
index 689e8dc81..665b53abc 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java
@@ -38,6 +38,7 @@ public class TextPresentationTest extends TestCase {
return new TestSuite(TextPresentationTest.class);
}
+ @Override
protected void setUp() {
setUpStyleRanges();
setUpTextPresentation();
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java
index 11a32cd30..48ad3498f 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java
@@ -50,10 +50,7 @@ public class TextViewerUndoManagerTest extends AbstractUndoManagerTest {
super(name);
}
- /*
- * @see org.eclipse.jface.text.tests.AbstractUndoManagerTest#createUndoManager(int)
- * @since 3.2
- */
+ @Override
protected IUndoManager createUndoManager(int maxUndoLevel) {
return new TextViewerUndoManager(maxUndoLevel);
}
@@ -66,15 +63,19 @@ public class TextViewerUndoManagerTest extends AbstractUndoManagerTest {
tempUndoManager.connect(context);
IUndoableOperation operation= new AbstractOperation("") {
+ @Override
public boolean canUndo() {
return isUndoable;
}
+ @Override
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
return Status.OK_STATUS;
}
+ @Override
public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
return Status.OK_STATUS;
}
+ @Override
public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
return Status.OK_STATUS;
}
@@ -89,6 +90,7 @@ public class TextViewerUndoManagerTest extends AbstractUndoManagerTest {
undoManager.connect(newContext);
undoManager.addDocumentUndoListener(new IDocumentUndoListener() {
+ @Override
public void documentUndoNotification(DocumentUndoEvent event) {
fail();
}
@@ -120,6 +122,7 @@ public class TextViewerUndoManagerTest extends AbstractUndoManagerTest {
undoManager.addDocumentUndoListener(new IDocumentUndoListener() {
+ @Override
public void documentUndoNotification(DocumentUndoEvent event) {
if (event.getEventType() == DocumentUndoEvent.ABOUT_TO_UNDO)
assertEquals(true, undoManager.undoable());
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java
index 698f5589d..ee4fddf83 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java
@@ -135,27 +135,34 @@ public class AbstractReconcilerTest extends TestCase {
private IProgressMonitor fProgressMonitor;
+ @Override
protected void setUp() {
fBarrier= new Barrier();
fCallLog= Collections.synchronizedList(new ArrayList());
fReconciler= new AbstractReconciler() {
+ @Override
protected void initialProcess() {
fCallLog.add("initialProcess");
fBarrier.await();
}
+ @Override
protected void process(DirtyRegion dirtyRegion) {
fCallLog.add("process");
fBarrier.await();
}
+ @Override
protected void reconcilerDocumentChanged(IDocument newDocument) {
fCallLog.add("reconcilerDocumentChanged");
}
+ @Override
protected void aboutToBeReconciled() {
fCallLog.add("aboutToBeReconciled");
}
+ @Override
protected void reconcilerReset() {
fCallLog.add("reconcilerReset");
}
+ @Override
public IReconcilingStrategy getReconcilingStrategy(String contentType) {
return null;
}
@@ -175,6 +182,7 @@ public class AbstractReconcilerTest extends TestCase {
}
+ @Override
protected void tearDown() throws Exception {
fBarrier.shutdown();
fReconciler.uninstall();
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerTest.java
index e54ad3e86..bfa5ad90c 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerTest.java
@@ -15,13 +15,12 @@ import org.eclipse.jface.text.rules.DefaultPartitioner;
import org.eclipse.jface.text.rules.IPartitionTokenScanner;
public class DefaultPartitionerTest extends FastPartitionerTest {
+ @Override
protected IDocumentPartitioner createPartitioner(IPartitionTokenScanner scanner) {
return new DefaultPartitioner(scanner, new String[] { DEFAULT, COMMENT });
}
- /*
- * @see org.eclipse.jface.text.tests.rules.FastPartitionerTest#testPR130900()
- */
+ @Override
public void testPR130900() throws Exception {
System.out.println("Bug130900 not fixed in DefaultPartitioner");
}
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerZeroLengthTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerZeroLengthTest.java
index bb7020539..965a3ebb6 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerZeroLengthTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/DefaultPartitionerZeroLengthTest.java
@@ -36,6 +36,7 @@ public class DefaultPartitionerZeroLengthTest extends TestCase {
private IDocument fDoc;
private FastPartitioner fPartitioner;
+ @Override
public void setUp() {
fDoc= new Document();
IPartitionTokenScanner scanner= new RuleBasedPartitionScanner() {
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java
index e0eca1be4..df25fb9fd 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java
@@ -38,6 +38,7 @@ public class FastPartitionerTest extends TestCase {
private IDocument fDoc;
private IDocumentPartitioner fPartitioner;
+ @Override
public void setUp() {
fDoc= new Document();
IPartitionTokenScanner scanner= new RuleBasedPartitionScanner() {
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/ScannerColumnTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/ScannerColumnTest.java
index 1b0c8b670..e2a31ce7e 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/ScannerColumnTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/ScannerColumnTest.java
@@ -25,10 +25,12 @@ public class ScannerColumnTest extends TestCase {
private IDocument fDocument;
+ @Override
protected void setUp() throws Exception {
fDocument= new Document("scanner test");
}
+ @Override
protected void tearDown() throws Exception {
fDocument= null;
}
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/WordRuleTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/WordRuleTest.java
index c5f4cb7a0..2a0354229 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/WordRuleTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/WordRuleTest.java
@@ -32,10 +32,12 @@ public class WordRuleTest extends TestCase {
private static class SimpleWordDetector implements IWordDetector {
+ @Override
public boolean isWordStart(char c) {
return !Character.isWhitespace(c);
}
+ @Override
public boolean isWordPart(char c) {
return !Character.isWhitespace(c);
}
@@ -48,10 +50,12 @@ public class WordRuleTest extends TestCase {
public void testBug163116() throws Exception {
IWordDetector detector= new IWordDetector() {
+ @Override
public boolean isWordPart(char c) {
return true;
}
+ @Override
public boolean isWordStart(char c) {
return true;
}

Back to the top