Skip to content

Commit b87ea2c

Browse files
committed
Fix some warnings in the test code
1 parent 7c8482f commit b87ea2c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/java/engineering/swat/watch/TortureTests.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import java.util.Collections;
4040
import java.util.Set;
4141
import java.util.concurrent.ConcurrentHashMap;
42-
import java.util.concurrent.ConcurrentLinkedDeque;
4342
import java.util.concurrent.Executor;
4443
import java.util.concurrent.Executors;
4544
import java.util.concurrent.LinkedBlockingDeque;
@@ -56,8 +55,6 @@
5655
import org.junit.jupiter.api.Test;
5756
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
5857

59-
import engineering.swat.watch.WatchEvent.Kind;
60-
6158
class TortureTests {
6259

6360
private final Logger logger = LogManager.getLogger();
@@ -70,7 +67,7 @@ void setup() throws IOException {
7067
}
7168

7269
@AfterEach
73-
void cleanup() throws IOException {
70+
void cleanup() {
7471
if (testDir != null) {
7572
testDir.close();
7673
}
@@ -90,7 +87,7 @@ private final class IOGenerator {
9087
}
9188
}
9289

93-
private final static int BURST_SIZE = 1000;
90+
private static final int BURST_SIZE = 1000;
9491

9592
private void startJob(final Path root, Random r, Executor exec) {
9693
exec.execute(() -> {

0 commit comments

Comments
 (0)