一坨屎
This commit is contained in:
@ -28,7 +28,7 @@ public class DateConverter implements Converter {
|
||||
try {
|
||||
result = doConvertToDate(value);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
logger.error("Failed to convert value to Date: " + value, e);
|
||||
}
|
||||
} else if (type == String.class) {
|
||||
result = doConvertToString(value);
|
||||
@ -56,8 +56,7 @@ public class DateConverter implements Converter {
|
||||
try {
|
||||
result = new Date(new Long((String) value).longValue());
|
||||
} catch (Exception e) {
|
||||
logger.error("Converting from milliseconds to Date fails!");
|
||||
e.printStackTrace();
|
||||
logger.error("Converting from milliseconds to Date fails!", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user