Delete unused imports in spring-messaging

This commit is contained in:
Sam Brannen
2015-03-17 17:29:38 +01:00
parent febcd0c46d
commit bf0703e07e
5 changed files with 3 additions and 10 deletions

View File

@@ -31,7 +31,6 @@ import org.springframework.messaging.Message;
import org.springframework.messaging.tcp.TcpOperations;
import org.springframework.messaging.tcp.reactor.Reactor11TcpClient;
import org.springframework.util.concurrent.ListenableFuture;
import org.springframework.util.concurrent.SettableListenableFuture;
/**
* A STOMP over TCP client that uses

View File

@@ -16,7 +16,6 @@
package org.springframework.messaging.simp.stomp;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;

View File

@@ -331,6 +331,7 @@ public class DefaultSubscriptionRegistryTests {
// SPR-12665
@Test
@SuppressWarnings("rawtypes")
public void findSubscriptionsReturnsMapSafeToIterate() throws Exception {
this.registry.registerSubscription(subscribeMessage("sess1", "1", "/foo"));
this.registry.registerSubscription(subscribeMessage("sess2", "1", "/foo"));

View File

@@ -20,7 +20,6 @@ import static org.junit.Assert.*;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.*;
import static org.mockito.Mockito.same;
import java.nio.charset.Charset;
import java.util.Date;
@@ -539,8 +538,8 @@ public class DefaultStompSessionTests {
assertTrue(received.get());
}
@SuppressWarnings("unchecked")
@Test
@SuppressWarnings({ "unchecked", "rawtypes" })
public void receiptNotReceived() throws Exception {
TaskScheduler taskScheduler = mock(TaskScheduler.class);

View File

@@ -15,15 +15,10 @@
*/
package org.springframework.messaging.simp.stomp;
import static org.junit.Assert.*;
import static org.mockito.Matchers.same;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.mockito.MockitoAnnotations;
import static org.junit.Assert.*;
/**
* Unit tests for {@@link StompClientSupport}.