Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-10-10 17:19:14 -0400
committerAlexander Kurtakov2019-10-10 17:19:14 -0400
commit824a7cb4d1ab5c45f2b09f54a43e1421971004ef (patch)
treea22f9eb61cba619147b4cc77e954b58cb5ec120f
parent5224c92b6770a7ecf68ec7d92476bbc23a674f01 (diff)
downloadorg.eclipse.cdt-824a7cb4d1ab5c45f2b09f54a43e1421971004ef.tar.gz
org.eclipse.cdt-824a7cb4d1ab5c45f2b09f54a43e1421971004ef.tar.xz
org.eclipse.cdt-824a7cb4d1ab5c45f2b09f54a43e1421971004ef.zip
Add missing Override annotations.
Change-Id: Ie5974aadea249a8cbc44524c297c29137ec9f4f5 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CBreakIterator.java58
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CWordIterator.java34
2 files changed, 2 insertions, 90 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CBreakIterator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CBreakIterator.java
index a6652fcde0..58e3713aa7 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CBreakIterator.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CBreakIterator.java
@@ -88,18 +88,12 @@ public class CBreakIterator extends BreakIterator {
private static final char INIT = '\0';
private static final char EXIT = '\1';
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#init()
- */
@Override
protected void init() {
super.init();
fState = INIT;
}
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#consume(char)
- */
@Override
protected boolean consume(char ch) {
if (!isValid(ch) || fState == EXIT)
@@ -125,9 +119,6 @@ public class CBreakIterator extends BreakIterator {
}
static final class Identifier extends Run {
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#isValid(char)
- */
@Override
protected boolean isValid(char ch) {
return Character.isJavaIdentifierPart(ch);
@@ -162,18 +153,12 @@ public class CBreakIterator extends BreakIterator {
{ S_EXIT, S_EXIT, S_EXIT, S_UNDERSCORE, S_EXIT }, // S_UNDERSCORE
};
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#init()
- */
@Override
protected void init() {
super.init();
fState = S_INIT;
}
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#consumes(char)
- */
@Override
protected boolean consume(char ch) {
int kind = getKind(ch);
@@ -213,9 +198,6 @@ public class CBreakIterator extends BreakIterator {
return K_INVALID;
}
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#isValid(char)
- */
@Override
protected boolean isValid(char ch) {
return Character.isJavaIdentifierPart(ch);
@@ -223,9 +205,6 @@ public class CBreakIterator extends BreakIterator {
}
static final class Other extends Run {
- /*
- * @see org.eclipse.cdt.internal.ui.text.CBreakIterator.Run#isValid(char)
- */
@Override
protected boolean isValid(char ch) {
return !Character.isWhitespace(ch) && !Character.isJavaIdentifierPart(ch);
@@ -255,26 +234,17 @@ public class CBreakIterator extends BreakIterator {
fIndex = fIterator.current();
}
- /*
- * @see com.ibm.icu.text.BreakIterator#current()
- */
@Override
public int current() {
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#first()
- */
@Override
public int first() {
fIndex = fIterator.first();
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#following(int)
- */
@Override
public int following(int offset) {
// work around too eager IAEs in standard implementation
@@ -341,17 +311,11 @@ public class CBreakIterator extends BreakIterator {
return run;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#getText()
- */
@Override
public CharacterIterator getText() {
return fIterator.getText();
}
- /*
- * @see com.ibm.icu.text.BreakIterator#isBoundary(int)
- */
@Override
public boolean isBoundary(int offset) {
if (offset == getText().getBeginIndex())
@@ -359,35 +323,23 @@ public class CBreakIterator extends BreakIterator {
return following(offset - 1) == offset;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#last()
- */
@Override
public int last() {
fIndex = fIterator.last();
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#next()
- */
@Override
public int next() {
fIndex = following(fIndex);
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#next(int)
- */
@Override
public int next(int n) {
return fIterator.next(n);
}
- /*
- * @see com.ibm.icu.text.BreakIterator#preceding(int)
- */
@Override
public int preceding(int offset) {
if (offset == getText().getBeginIndex())
@@ -410,18 +362,12 @@ public class CBreakIterator extends BreakIterator {
return last;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#previous()
- */
@Override
public int previous() {
fIndex = preceding(fIndex);
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#setText(java.lang.String)
- */
@Override
public void setText(String newText) {
setText((CharSequence) newText);
@@ -431,15 +377,13 @@ public class CBreakIterator extends BreakIterator {
* Creates a break iterator given a char sequence.
* @param newText the new text
*/
+ @Override
public void setText(CharSequence newText) {
fText = newText;
fIterator.setText(new SequenceCharacterIterator(newText));
first();
}
- /*
- * @see com.ibm.icu.text.BreakIterator#setText(java.text.CharacterIterator)
- */
@Override
public void setText(CharacterIterator newText) {
if (newText instanceof CharSequence) {
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CWordIterator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CWordIterator.java
index 110cbabf43..3f654e2edf 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CWordIterator.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CWordIterator.java
@@ -44,27 +44,18 @@ public class CWordIterator extends BreakIterator {
first();
}
- /*
- * @see com.ibm.icu.text.BreakIterator#first()
- */
@Override
public int first() {
fIndex = fIterator.first();
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#last()
- */
@Override
public int last() {
fIndex = fIterator.last();
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#next(int)
- */
@Override
public int next(int n) {
int next = 0;
@@ -74,27 +65,18 @@ public class CWordIterator extends BreakIterator {
return next;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#next()
- */
@Override
public int next() {
fIndex = following(fIndex);
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#previous()
- */
@Override
public int previous() {
fIndex = preceding(fIndex);
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#preceding(int)
- */
@Override
public int preceding(int offset) {
int first = fIterator.preceding(offset);
@@ -106,9 +88,6 @@ public class CWordIterator extends BreakIterator {
return first;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#following(int)
- */
@Override
public int following(int offset) {
int first = fIterator.following(offset);
@@ -190,17 +169,11 @@ public class CWordIterator extends BreakIterator {
return true;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#current()
- */
@Override
public int current() {
return fIndex;
}
- /*
- * @see com.ibm.icu.text.BreakIterator#getText()
- */
@Override
public CharacterIterator getText() {
return fIterator.getText();
@@ -210,23 +183,18 @@ public class CWordIterator extends BreakIterator {
* Sets the text as <code>CharSequence</code>.
* @param newText the new text
*/
+ @Override
public void setText(CharSequence newText) {
fIterator.setText(newText);
first();
}
- /*
- * @see com.ibm.icu.text.BreakIterator#setText(java.text.CharacterIterator)
- */
@Override
public void setText(CharacterIterator newText) {
fIterator.setText(newText);
first();
}
- /*
- * @see com.ibm.icu.text.BreakIterator#setText(java.lang.String)
- */
@Override
public void setText(String newText) {
setText((CharSequence) newText);

Back to the top