INT-1307 using charset.name() instead of charset itself in String constructor for Java 5 compatibility
This commit is contained in:
@@ -52,7 +52,7 @@ public class SimpleMultipartFileReader implements MultipartFileReader<Object> {
|
||||
if (charset == null) {
|
||||
charset = defaultCharset;
|
||||
}
|
||||
return new String(multipartFile.getBytes(), charset);
|
||||
return new String(multipartFile.getBytes(), charset.name());
|
||||
}
|
||||
else {
|
||||
return multipartFile.getBytes();
|
||||
|
||||
Reference in New Issue
Block a user