{"action":"closed","issue":{"url":"https://api.github.com/repos/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/778","labels_url":"https://api.github.com/repos/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/778/comments","events_url":"https://api.github.com/repos/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/778/events","html_url":"https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/778","id":60256434,"number":778,"title":"SimpleDateFormat isn't thread safe.","user":{"login":"woltere","id":1155513,"avatar_url":"https://avatars.githubusercontent.com/u/1155513?v=3","gravatar_id":"","url":"https://api.github.com/users/woltere","html_url":"https://github.com/woltere","followers_url":"https://api.github.com/users/woltere/followers","following_url":"https://api.github.com/users/woltere/following{/other_user}","gists_url":"https://api.github.com/users/woltere/gists{/gist_id}","starred_url":"https://api.github.com/users/woltere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woltere/subscriptions","organizations_url":"https://api.github.com/users/woltere/orgs","repos_url":"https://api.github.com/users/woltere/repos","events_url":"https://api.github.com/users/woltere/events{/privacy}","received_events_url":"https://api.github.com/users/woltere/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-08T13:24:36Z","updated_at":"2015-03-09T00:51:13Z","closed_at":"2015-03-09T00:51:13Z","body":"SimpleDateFormat isn't thread safe.\r\n\r\nI suggest dropping class DateUtil and instead use org.springframework.format.datetime.DateFormatter.\r\n\r\n    DateFormatter formatter = new DateFormatter();\r\n    formatter.setIso(DATE_TIME);\r\n    DateFormat df = formatter.getDateFormat(Locale.ENGLISH);\r\n\r\n\r\nThe only difference would be that an invalid date would give an exception, not return null like the current implementation. I would prefer to fail the parsing of the datetime and not return null.\r\n\r\n\r\n\r\n"}}