Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

trivial cleanup to avoid compiler warnings

Daniel Naber738103d83da6
diff --git a/src/test/org/apache/lucene/analysis/TestStopFilter.java b/src/test/org/apache/lucene/analysis/TestStopFilter.java
index 141829edc86..72ab7101558 100644
--- a/src/test/org/apache/lucene/analysis/TestStopFilter.java
+++ b/src/test/org/apache/lucene/analysis/TestStopFilter.java
@@ -16,12 +16,10 @@ package org.apache.lucene.analysis;
* limitations under the License.
*/
-import junit.framework.TestCase;
-
-import java.io.StringReader;
import java.io.IOException;
-import java.util.Set;
-import java.util.HashSet;
+import java.io.StringReader;
+
+import junit.framework.TestCase;
/**
* @author yonik
diff --git a/src/test/org/apache/lucene/store/TestLock.java b/src/test/org/apache/lucene/store/TestLock.java
index dedc35203e6..f5f0ecfccda 100644
--- a/src/test/org/apache/lucene/store/TestLock.java
+++ b/src/test/org/apache/lucene/store/TestLock.java
@@ -75,7 +75,7 @@ public class TestLock extends TestCase {
private class LockMock extends Lock {
public int lockAttempts;
- public boolean obtain() throws IOException {
+ public boolean obtain() {
lockAttempts++;
return false;
}