@@ -21,7 +21,7 @@ public class ISO8601 {
21
21
public static final String OUTPUT_MSEC_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ;
22
22
public static final String UTC_PATTERN = "yyyy-MM-dd HH:mm:ss 'UTC'" ;
23
23
24
- // Set up ThreadLocal storage to save a thread local SimpleDateFormat keyed with the format stringf
24
+ // Set up ThreadLocal storage to save a thread local SimpleDateFormat keyed with the format string
25
25
private static final class SafeDateFormatter {
26
26
27
27
private static final ThreadLocal <Map <String , SimpleDateFormat >> safeFormats = new ThreadLocal <Map <String , SimpleDateFormat >>() {
@@ -89,7 +89,7 @@ public static String toString(Calendar cal) {
89
89
* @param withMsec flag indicating whether to include milliseconds
90
90
* @return a ISO8601 formatted string for the provided Date instance, or null if date is null
91
91
*/
92
- public static synchronized String toString (Date date , boolean withMsec ) {
92
+ public static String toString (Date date , boolean withMsec ) {
93
93
94
94
if (date == null ) {
95
95
return (null );
@@ -107,7 +107,7 @@ public static synchronized String toString(Date date, boolean withMsec) {
107
107
* @param date the Date instance to get the ISO8601 formatted string for
108
108
* @return a ISO8601 formatted string for the provided Date instance, or null if date is null
109
109
*/
110
- public static synchronized String toString (Date date ) {
110
+ public static String toString (Date date ) {
111
111
return (toString (date , true ));
112
112
}
113
113
0 commit comments