Fix JavaDos and Compiler warnings

https://build.spring.io/browse/INT-B43-162
This commit is contained in:
Artem Bilan
2016-04-21 10:25:08 -04:00
parent 38274f5ac6
commit 4e4763d24f
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ public class SimpleMultipartFileReader implements MultipartFileReader<Object> {
public Object readMultipartFile(MultipartFile multipartFile) throws IOException {
if (multipartFile.getContentType() != null && multipartFile.getContentType().startsWith("text")) {
MediaType contentType = MediaType.parseMediaType(multipartFile.getContentType());
Charset charset = contentType.getCharSet();
Charset charset = contentType.getCharset();
if (charset == null) {
charset = this.defaultCharset;
}

View File

@@ -143,7 +143,7 @@ public class JdbcPollingChannelAdapter extends IntegrationObjectSupport implemen
* Message payload will contain either a List of Maps for each row or, if a
* RowMapper has been provided, the values mapped from those rows. If the
* query returns no rows, this method will return <code>null</code>.
* #return the {@link Message<Object>} or {@code null} as a result of query.
* #return the {@link Message} or {@code null} as a result of query.
*/
public Message<Object> receive() {
Object payload = poll();