From f65f8a63587e0f42e1d8843b30ff15c8f74e3f86 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Oct 2020 09:08:48 +0300 Subject: Fix some JDT warnings --- src/test/java/com/juick/config/TestActivityConfiguration.java | 2 -- src/test/java/com/juick/server/tests/ServerTests.java | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/com/juick/config/TestActivityConfiguration.java b/src/test/java/com/juick/config/TestActivityConfiguration.java index 854bad06..d77b2d52 100644 --- a/src/test/java/com/juick/config/TestActivityConfiguration.java +++ b/src/test/java/com/juick/config/TestActivityConfiguration.java @@ -23,8 +23,6 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.Resource; -import java.io.IOException; - @Configuration public class TestActivityConfiguration { @Value("classpath:test.p12") diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index ee726dbf..03f52623 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -756,6 +756,7 @@ public class ServerTests { Scanner headerScanner = new Scanner(header).useDelimiter(EmailManager.MSGID_PATTERN); int mid = Integer.parseInt(headerScanner.next()); int rid = Integer.parseInt(headerScanner.next()); + headerScanner.close(); assertThat(mid, equalTo(123456)); assertThat(rid, equalTo(56)); } -- cgit v1.2.3