diff --git a/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java b/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java index 05c5eb6b8c..582ca852a7 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java @@ -69,12 +69,12 @@ public class JsonInboundMessageMapper implements InboundMessageMapper { public JsonInboundMessageMapper(Class payloadType) { Assert.notNull(payloadType, "payloadType must not be null"); - this.payloadType = TypeFactory.type(payloadType); + this.payloadType = TypeFactory.defaultInstance().constructType(payloadType); } public JsonInboundMessageMapper(TypeReference typeReference) { Assert.notNull(typeReference, "typeReference must not be null"); - this.payloadType = TypeFactory.type(typeReference); + this.payloadType = TypeFactory.defaultInstance().constructType(typeReference); } diff --git a/spring-integration-core/src/main/java/org/springframework/integration/mapping/HeaderMapper.java b/spring-integration-core/src/main/java/org/springframework/integration/mapping/HeaderMapper.java index ba3fdeba1f..6561dc923d 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/mapping/HeaderMapper.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/mapping/HeaderMapper.java @@ -33,6 +33,6 @@ public interface HeaderMapper { void fromHeaders(MessageHeaders headers, T target); - Map toHeaders(T source); + Map toHeaders(T source); } diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java index 40aa9ada7c..5b7a7c71a7 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java @@ -51,7 +51,7 @@ import org.springframework.util.ObjectUtils; */ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReplyProducingMessageHandler { - protected final SessionFactory sessionFactory; + protected final SessionFactory sessionFactory; protected final String command; @@ -91,7 +91,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply private volatile FileListFilter filter; - public AbstractRemoteFileOutboundGateway(SessionFactory sessionFactory, String command, + public AbstractRemoteFileOutboundGateway(SessionFactory sessionFactory, String command, String expression) { this.sessionFactory = sessionFactory; this.command = command; @@ -183,7 +183,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply @Override protected Object handleRequestMessage(Message requestMessage) { - Session session = this.sessionFactory.getSession(); + Session session = this.sessionFactory.getSession(); try { if (COMMAND_LS.equals(this.command)) { String dir = this.processor.processMessage(requestMessage); @@ -225,9 +225,9 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply } } - protected List ls(Session session, String dir) throws IOException { + protected List ls(Session session, String dir) throws IOException { List lsFiles = new ArrayList(); - F[] files = session.list(dir); + F[] files = session.list(dir); if (!ObjectUtils.isEmpty(files)) { Collection filteredFiles = this.filterFiles(files); for (F file : filteredFiles) { @@ -295,12 +295,11 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply * Copy a remote file to the configured local directory. * @param session * @param remoteFilePath - * @return * @throws IOException */ - protected File get(Session session, String remoteFilePath, String remoteFilename) + protected File get(Session session, String remoteFilePath, String remoteFilename) throws IOException { - F[] files = session.list(remoteFilePath); + F[] files = session.list(remoteFilePath); if (files.length != 1 || isDirectory(files[0]) || isLink(files[0])) { throw new MessagingException(remoteFilePath + " is not a file"); } @@ -342,7 +341,6 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply /** * @param remoteFilePath - * @return */ protected String getRemoteFilename(String remoteFilePath) { String remoteFileName; @@ -356,7 +354,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply return remoteFileName; } - protected boolean rm(Session session, String remoteFilePath) + protected boolean rm(Session session, String remoteFilePath) throws IOException { return session.remove(remoteFilePath); } diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java index 828c498938..438d9573dd 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java @@ -36,25 +36,25 @@ import org.springframework.integration.util.UpperBound; * @author Mark Fisher * @since 2.0 */ -public class CachingSessionFactory implements SessionFactory, DisposableBean { +public class CachingSessionFactory implements SessionFactory, DisposableBean { private static final Log logger = LogFactory.getLog(CachingSessionFactory.class); private volatile long sessionWaitTimeout = Integer.MAX_VALUE; - private final LinkedBlockingQueue queue = new LinkedBlockingQueue(); + private final LinkedBlockingQueue> queue = new LinkedBlockingQueue>(); - private final SessionFactory sessionFactory; + private final SessionFactory sessionFactory; private final UpperBound sessionPermits; - public CachingSessionFactory(SessionFactory sessionFactory) { + public CachingSessionFactory(SessionFactory sessionFactory) { this(sessionFactory, 0); } - public CachingSessionFactory(SessionFactory sessionFactory, int sessionCacheSize) { + public CachingSessionFactory(SessionFactory sessionFactory, int sessionCacheSize) { this.sessionFactory = sessionFactory; this.sessionPermits = new UpperBound(sessionCacheSize); } @@ -69,25 +69,25 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { this.sessionWaitTimeout = sessionWaitTimeout; } - public Session getSession() { + public Session getSession() { boolean permitted = this.sessionPermits.tryAcquire(this.sessionWaitTimeout); if (!permitted) { throw new IllegalStateException("Timed out while waiting to aquire a Session."); } - Session session = this.doGetSession(); + Session session = this.doGetSession(); return new CachedSession(session); } public void destroy() { if (this.queue != null) { - for (Session session : this.queue) { + for (Session session : this.queue) { this.closeSession(session); } } } - private Session doGetSession() { - Session session = this.queue.poll(); + private Session doGetSession() { + Session session = this.queue.poll(); if (session != null && !session.isOpen()) { if (logger.isDebugEnabled()) { logger.debug("Received a stale Session, will attempt to get a new one."); @@ -100,7 +100,7 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { return session; } - private void closeSession(Session session) { + private void closeSession(Session session) { try { if (session != null) { session.close(); @@ -115,11 +115,11 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { } - private class CachedSession implements Session { + private class CachedSession implements Session { - private final Session targetSession; + private final Session targetSession; - private CachedSession(Session targetSession) { + private CachedSession(Session targetSession) { this.targetSession = targetSession; } @@ -135,8 +135,8 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { return this.targetSession.remove(path); } - public F[] list(String path) throws IOException{ - return this.targetSession.list(path); + public F[] list(String path) throws IOException{ + return this.targetSession.list(path); } public void read(String source, OutputStream os) throws IOException{ diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/Session.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/Session.java index be3413b4ab..33d334b006 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/Session.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/Session.java @@ -29,11 +29,11 @@ import java.io.OutputStream; * @author Oleg Zhurakousky * @since 2.0 */ -public interface Session { +public interface Session { boolean remove(String path) throws IOException; - F[] list(String path) throws IOException; + T[] list(String path) throws IOException; void read(String source, OutputStream outputStream) throws IOException; diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/SessionFactory.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/SessionFactory.java index 93ef036f92..9fb637abf3 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/SessionFactory.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/SessionFactory.java @@ -22,8 +22,8 @@ package org.springframework.integration.file.remote.session; * @author Mark Fisher * @since 2.0 */ -public interface SessionFactory { +public interface SessionFactory { - Session getSession(); + Session getSession(); } diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java index d5b4ee0a23..476b0b99c7 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java @@ -73,7 +73,7 @@ public abstract class AbstractInboundFileSynchronizer implements InboundFileS /** * the {@link SessionFactory} for acquiring remote file Sessions. */ - private final SessionFactory sessionFactory; + private final SessionFactory sessionFactory; /** * An {@link FileListFilter} that runs against the remote file system view. @@ -90,7 +90,7 @@ public abstract class AbstractInboundFileSynchronizer implements InboundFileS /** * Create a synchronizer with the {@link SessionFactory} used to acquire {@link Session} instances. */ - public AbstractInboundFileSynchronizer(SessionFactory sessionFactory) { + public AbstractInboundFileSynchronizer(SessionFactory sessionFactory) { Assert.notNull(sessionFactory, "sessionFactory must not be null"); this.sessionFactory = sessionFactory; } @@ -138,11 +138,11 @@ public abstract class AbstractInboundFileSynchronizer implements InboundFileS } public void synchronizeToLocalDirectory(File localDirectory) { - Session session = null; + Session session = null; try { session = this.sessionFactory.getSession(); Assert.state(session != null, "failed to acquire a Session"); - F[] files = session.list(this.remoteDirectory); + F[] files = session.list(this.remoteDirectory); if (!ObjectUtils.isEmpty(files)) { Collection filteredFiles = this.filterFiles(files); for (F file : filteredFiles) { @@ -169,7 +169,7 @@ public abstract class AbstractInboundFileSynchronizer implements InboundFileS } } - private void copyFileToLocalDirectory(String remoteDirectoryPath, F remoteFile, File localDirectory, Session session) throws IOException { + private void copyFileToLocalDirectory(String remoteDirectoryPath, F remoteFile, File localDirectory, Session session) throws IOException { String remoteFileName = this.getFilename(remoteFile); String localFileName = this.generateLocalFileName(remoteFileName); String remoteFilePath = remoteDirectoryPath + remoteFileSeparator + remoteFileName; diff --git a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java index f995a4aa2b..75a1f8f870 100644 --- a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java +++ b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java @@ -34,7 +34,7 @@ import org.springframework.integration.ftp.session.FtpFileInfo; */ public class FtpOutboundGateway extends AbstractRemoteFileOutboundGateway { - public FtpOutboundGateway(SessionFactory sessionFactory, String command, + public FtpOutboundGateway(SessionFactory sessionFactory, String command, String expression) { super(sessionFactory, command, expression); } diff --git a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/inbound/FtpInboundFileSynchronizer.java b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/inbound/FtpInboundFileSynchronizer.java index 17d004ffcc..a5b942cae6 100644 --- a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/inbound/FtpInboundFileSynchronizer.java +++ b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/inbound/FtpInboundFileSynchronizer.java @@ -35,7 +35,7 @@ public class FtpInboundFileSynchronizer extends AbstractInboundFileSynchronizer< /** * Create a synchronizer with the {@link SessionFactory} used to acquire {@link Session} instances. */ - public FtpInboundFileSynchronizer(SessionFactory sessionFactory) { + public FtpInboundFileSynchronizer(SessionFactory sessionFactory) { super(sessionFactory); } diff --git a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/session/FtpSession.java b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/session/FtpSession.java index 4e66cacddf..f1cf21f1be 100644 --- a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/session/FtpSession.java +++ b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/session/FtpSession.java @@ -35,7 +35,7 @@ import org.springframework.util.Assert; * @author Oleg Zhurakousky * @since 2.0 */ -class FtpSession implements Session { +class FtpSession implements Session { private final Log logger = LogFactory.getLog(this.getClass()); @@ -56,8 +56,7 @@ class FtpSession implements Session { } return completed; } - - @SuppressWarnings({"unchecked"}) + public FTPFile[] list(String path) throws IOException { Assert.hasText(path, "path must not be null"); return this.client.listFiles(path); diff --git a/spring-integration-http/src/main/java/org/springframework/integration/http/support/DefaultHttpHeaderMapper.java b/spring-integration-http/src/main/java/org/springframework/integration/http/support/DefaultHttpHeaderMapper.java index c8131986a4..3f44639873 100644 --- a/spring-integration-http/src/main/java/org/springframework/integration/http/support/DefaultHttpHeaderMapper.java +++ b/spring-integration-http/src/main/java/org/springframework/integration/http/support/DefaultHttpHeaderMapper.java @@ -310,7 +310,7 @@ public class DefaultHttpHeaderMapper implements HeaderMapper, BeanF * Depending on which type of adapter is using this mapper, the HttpHeaders might be * from an HTTP request (inbound adapter) or from an HTTP response (outbound adapter). */ - public Map toHeaders(HttpHeaders source) { + public Map toHeaders(HttpHeaders source) { if (logger.isDebugEnabled()) { logger.debug(MessageFormat.format("inboundHeaderNames={0}", CollectionUtils.arrayToList(inboundHeaderNames))); } diff --git a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java index 47b6b4eb47..b0ab0b912c 100644 --- a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java +++ b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java @@ -113,7 +113,6 @@ public class HttpInboundChannelAdapterParserTests { } @Test - @SuppressWarnings("unchecked") public void getRequestWithHeaders() throws Exception { DefaultHttpHeaderMapper headerMapper = (DefaultHttpHeaderMapper) TestUtils.getPropertyValue(withMappedHeaders, "headerMapper"); @@ -122,7 +121,7 @@ public class HttpInboundChannelAdapterParserTests { headers.set("foo", "foo"); headers.set("bar", "bar"); headers.set("baz", "baz"); - Map map = (Map) headerMapper.toHeaders(headers); + Map map = (Map) headerMapper.toHeaders(headers); assertTrue(map.size() == 2); assertEquals("foo", map.get("foo")); assertEquals("bar", map.get("bar")); diff --git a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java index d586fe970d..d0f4075d42 100644 --- a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java +++ b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java @@ -113,7 +113,6 @@ public class HttpInboundGatewayParserTests { } @Test - @SuppressWarnings("unchecked") public void requestWithHeaders() throws Exception { DefaultHttpHeaderMapper headerMapper = (DefaultHttpHeaderMapper) TestUtils.getPropertyValue(withMappedHeaders, "headerMapper"); @@ -122,7 +121,7 @@ public class HttpInboundGatewayParserTests { headers.set("foo", "foo"); headers.set("bar", "bar"); headers.set("baz", "baz"); - Map map = (Map) headerMapper.toHeaders(headers); + Map map = (Map) headerMapper.toHeaders(headers); assertTrue(map.size() == 2); assertEquals("foo", map.get("foo")); assertEquals("bar", map.get("bar")); @@ -138,7 +137,6 @@ public class HttpInboundGatewayParserTests { } @Test - @SuppressWarnings("unchecked") public void requestWithHeadersWithConversionService() throws Exception { DefaultHttpHeaderMapper headerMapper = (DefaultHttpHeaderMapper) TestUtils.getPropertyValue(withMappedHeadersAndConverter, "headerMapper"); @@ -147,7 +145,7 @@ public class HttpInboundGatewayParserTests { headers.set("foo", "foo"); headers.set("bar", "bar"); headers.set("baz", "baz"); - Map map = (Map) headerMapper.toHeaders(headers); + Map map = (Map) headerMapper.toHeaders(headers); assertTrue(map.size() == 2); assertEquals("foo", map.get("foo")); assertEquals("bar", map.get("bar")); diff --git a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNetClientConnectionFactory.java b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNetClientConnectionFactory.java index 82664d1a03..66ea8ec1ba 100644 --- a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNetClientConnectionFactory.java +++ b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNetClientConnectionFactory.java @@ -41,7 +41,6 @@ public class TcpNetClientConnectionFactory extends } /** - * @return * @throws IOException * @throws SocketException * @throws Exception diff --git a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNioClientConnectionFactory.java b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNioClientConnectionFactory.java index 1763387e7b..37aba71098 100644 --- a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNioClientConnectionFactory.java +++ b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNioClientConnectionFactory.java @@ -57,7 +57,6 @@ public class TcpNioClientConnectionFactory extends } /** - * @return * @throws Exception * @throws IOException * @throws SocketException diff --git a/spring-integration-jms/src/main/java/org/springframework/integration/jms/ChannelPublishingJmsMessageListener.java b/spring-integration-jms/src/main/java/org/springframework/integration/jms/ChannelPublishingJmsMessageListener.java index a4ab50a0cc..d88b55f555 100644 --- a/spring-integration-jms/src/main/java/org/springframework/integration/jms/ChannelPublishingJmsMessageListener.java +++ b/spring-integration-jms/src/main/java/org/springframework/integration/jms/ChannelPublishingJmsMessageListener.java @@ -260,7 +260,6 @@ public class ChannelPublishingJmsMessageListener this.extractReplyPayload = extractReplyPayload; } - @SuppressWarnings("unchecked") public void onMessage(javax.jms.Message jmsMessage, Session session) throws JMSException { Object result = jmsMessage; if (this.extractRequestPayload) { @@ -270,7 +269,7 @@ public class ChannelPublishingJmsMessageListener } } - Map headers = (Map) headerMapper.toHeaders(jmsMessage); + Map headers = headerMapper.toHeaders(jmsMessage); Message requestMessage = (result instanceof Message) ? MessageBuilder.fromMessage((Message) result).copyHeaders(headers).build() : MessageBuilder.withPayload(result).copyHeaders(headers).build(); diff --git a/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsDestinationPollingSource.java b/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsDestinationPollingSource.java index 59e3700380..747c40b253 100644 --- a/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsDestinationPollingSource.java +++ b/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsDestinationPollingSource.java @@ -96,7 +96,7 @@ public class JmsDestinationPollingSource extends IntegrationObjectSupport implem } try { // Map headers - Map mappedHeaders = (Map) this.headerMapper.toHeaders(jmsMessage); + Map mappedHeaders = this.headerMapper.toHeaders(jmsMessage); MessageConverter converter = this.jmsTemplate.getMessageConverter(); Object convertedObject = converter.fromMessage(jmsMessage); MessageBuilder builder = (convertedObject instanceof Message) diff --git a/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsOutboundGateway.java b/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsOutboundGateway.java index 9382cfb110..6798e5d5c7 100644 --- a/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsOutboundGateway.java +++ b/spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsOutboundGateway.java @@ -398,7 +398,7 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler { logger.debug("converted JMS Message [" + jmsReply + "] to integration Message payload [" + result + "]"); } } - Map jmsReplyHeaders = (Map) this.headerMapper.toHeaders(jmsReply); + Map jmsReplyHeaders = this.headerMapper.toHeaders(jmsReply); Message replyMessage = null; if (result instanceof Message){ replyMessage = MessageBuilder.fromMessage((Message) result).copyHeaders(jmsReplyHeaders).build(); diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java index 91b1b63be8..52fcf2c38d 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java @@ -41,7 +41,7 @@ public class SftpOutboundGateway extends AbstractRemoteFileOutboundGateway sessionFactory, String command, String expression) { super(sessionFactory, command, expression); } diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/inbound/SftpInboundFileSynchronizer.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/inbound/SftpInboundFileSynchronizer.java index 38656d3617..1ee8246995 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/inbound/SftpInboundFileSynchronizer.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/inbound/SftpInboundFileSynchronizer.java @@ -31,7 +31,7 @@ import com.jcraft.jsch.ChannelSftp.LsEntry; */ public class SftpInboundFileSynchronizer extends AbstractInboundFileSynchronizer { - public SftpInboundFileSynchronizer(SessionFactory sessionFactory) { + public SftpInboundFileSynchronizer(SessionFactory sessionFactory) { super(sessionFactory); } diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java index 2808b06a6c..52d2d225e2 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java @@ -45,7 +45,7 @@ import com.jcraft.jsch.SftpException; * @author Oleg Zhurakousky * @since 2.0 */ -class SftpSession implements Session { +class SftpSession implements Session { private final Log logger = LogFactory.getLog(this.getClass()); @@ -71,7 +71,6 @@ class SftpSession implements Session { } } - @SuppressWarnings("unchecked") public LsEntry[] list(String path) throws IOException { Assert.state(this.channel != null, "session is not connected"); try { diff --git a/spring-integration-twitter/src/main/java/org/springframework/integration/twitter/inbound/MentionsReceivingMessageSource.java b/spring-integration-twitter/src/main/java/org/springframework/integration/twitter/inbound/MentionsReceivingMessageSource.java index 29a33efdaa..7d21cf4880 100644 --- a/spring-integration-twitter/src/main/java/org/springframework/integration/twitter/inbound/MentionsReceivingMessageSource.java +++ b/spring-integration-twitter/src/main/java/org/springframework/integration/twitter/inbound/MentionsReceivingMessageSource.java @@ -22,7 +22,7 @@ import org.springframework.social.twitter.api.Tweet; import org.springframework.social.twitter.api.Twitter; /** - * Handles forwarding all new {@link twitter4j.Status} that are 'replies' or 'mentions' to some other tweet. + * Receives Message Tweets * * @author Josh Long * @author Oleg Zhurakousky