Remove Compiler Warnings
This commit is contained in:
@@ -44,6 +44,7 @@ public class FindByIndexNameSessionRepositoryTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unused")
|
||||
public void findByUsername() {
|
||||
// tag::findby-username[]
|
||||
String username = "username";
|
||||
|
||||
@@ -25,7 +25,6 @@ import org.springframework.context.annotation.ImportResource;
|
||||
@ImportResource("META-INF/spring/session-server.xml") // <2>
|
||||
public class Application {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
public static void main(final String[] args) {
|
||||
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Application.class);
|
||||
context.registerShutdownHook();
|
||||
|
||||
Reference in New Issue
Block a user