polishing, fixed warning messages

This commit is contained in:
Oleg Zhurakousky
2011-05-03 19:20:57 -04:00
parent a99e51e7b2
commit 765503daa4
11 changed files with 10 additions and 18 deletions

View File

@@ -60,7 +60,7 @@ public class FileInboundChannelAdapterWithRecursiveDirectoryTests {
assertThat(files.receive(), hasPayload(file));
}
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
@Test(timeout = 3000)
public void shouldReturnFilesMultipleLevels() throws IOException {

View File

@@ -37,7 +37,6 @@ import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.http.HttpHeaders;

View File

@@ -20,8 +20,6 @@ import java.net.Socket;
import javax.net.SocketFactory;
import org.springframework.integration.MessagingException;
/**
* A client connection factory that creates {@link TcpNetConnection}s.
* @author Gary Russell

View File

@@ -50,6 +50,7 @@ public class TcpNioConnectionTests {
factory.start();
final CountDownLatch latch = new CountDownLatch(1);
Executors.newSingleThreadExecutor().execute(new Runnable() {
@SuppressWarnings("unused")
public void run() {
try {
ServerSocket server = ServerSocketFactory.getDefault().createServerSocket(port);

View File

@@ -16,7 +16,6 @@
package org.springframework.integration.ip.tcp.serializer;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.ByteArrayInputStream;

View File

@@ -53,6 +53,7 @@ import org.springframework.integration.Message;
* @author Iwein Fuld
*
*/
@SuppressWarnings("rawtypes")
public class PayloadMatcher extends TypeSafeMatcher<Message> {
private final Matcher matcher;

View File

@@ -70,6 +70,7 @@ public class PayloadMatcherTests {
}
}
@SuppressWarnings("rawtypes")
@Test
public void shouldMatchNonParametrizedMessage() throws Exception {
Message message = this.message;

View File

@@ -136,8 +136,6 @@ public class XsltPayloadTransformer extends AbstractTransformer {
/**
* User source factory even for directly supported payloads
*
* @return
*/
public void setAlwaysUseSourceFactory(boolean alwaysUseSourceFactory) {
this.alwaysUseSourceFactory = alwaysUseSourceFactory;

View File

@@ -15,10 +15,16 @@
*/
package org.springframework.integration.xml.transformer;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import java.util.Properties;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
@@ -28,19 +34,8 @@ import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.history.MessageHistory;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.integration.test.util.TestUtils;
import org.springframework.integration.xml.util.XmlTestUtil;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.xml.transform.StringResult;
import org.w3c.dom.Document;
import javax.xml.transform.dom.DOMResult;
import static org.junit.Assert.assertFalse;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertTrue;
/**
* @author Oleg Zhurakousky