takcy / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

org.openid4java.util.InternetDateFormat is not thread-safe #205

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
org.openid4java.util.InternetDateFormat extends SimpleDateFormat which is not 
thread-safe.
An alternative would be to replace the use of InternetDateFormat with 
commons-lang's org.apache.commons.lang3.time.FastDateFormat:
new InternetDateFormat()
->
FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss'Z'", 
TimeZone.getTimeZone("GMT"), Locale.US)

Original issue reported on code.google.com by cedrik.l...@gmail.com on 19 Dec 2013 at 1:19