Skip to content

Apache Lucene open-source search software

LUCENE-3193: remove @override for interface method implementations

Shai Ereraa58aa6592497
diff --git a/lucene/src/java/org/apache/lucene/util/TwoPhaseCommitTool.java b/lucene/src/java/org/apache/lucene/util/TwoPhaseCommitTool.java
index b16d746cc97..66f3526ed90 100644
--- a/lucene/src/java/org/apache/lucene/util/TwoPhaseCommitTool.java
+++ b/lucene/src/java/org/apache/lucene/util/TwoPhaseCommitTool.java
@@ -44,27 +44,22 @@ public final class TwoPhaseCommitTool {
this.commitData = commitData;
}
- @Override
public void prepareCommit() throws IOException {
prepareCommit(commitData);
}
- @Override
public void prepareCommit(Map<String, String> commitData) throws IOException {
tpc.prepareCommit(this.commitData);
}
- @Override
public void commit() throws IOException {
commit(commitData);
}
- @Override
public void commit(Map<String, String> commitData) throws IOException {
tpc.commit(this.commitData);
}
- @Override
public void rollback() throws IOException {
tpc.rollback();
}
diff --git a/lucene/src/test/org/apache/lucene/util/TestTwoPhaseCommitTool.java b/lucene/src/test/org/apache/lucene/util/TestTwoPhaseCommitTool.java
index b7e528857f7..ddbb5403b4e 100644
--- a/lucene/src/test/org/apache/lucene/util/TestTwoPhaseCommitTool.java
+++ b/lucene/src/test/org/apache/lucene/util/TestTwoPhaseCommitTool.java
@@ -40,12 +40,10 @@ public class TestTwoPhaseCommitTool extends LuceneTestCase {
this.failOnRollback = failOnRollback;
}
- @Override
public void prepareCommit() throws IOException {
prepareCommit(null);
}
- @Override
public void prepareCommit(Map<String, String> commitData) throws IOException {
this.prepareCommitData = commitData;
assertFalse("commit should not have been called before all prepareCommit were", commitCalled);
@@ -54,12 +52,10 @@ public class TestTwoPhaseCommitTool extends LuceneTestCase {
}
}
- @Override
public void commit() throws IOException {
commit(null);
}
- @Override
public void commit(Map<String, String> commitData) throws IOException {
this.commitData = commitData;
commitCalled = true;
@@ -68,7 +64,6 @@ public class TestTwoPhaseCommitTool extends LuceneTestCase {
}
}
- @Override
public void rollback() throws IOException {
rollbackCalled = true;
if (failOnRollback) {