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;
}