goGPS-Project / goGPS_Java

goGPS Java is a GNSS observation processing library.
http://www.gogps-project.org
59 stars 43 forks source link

DateFormat shouldn't be static #2

Closed ZiglioUK closed 9 years ago

ZiglioUK commented 9 years ago

Or any Time related objects (with the old Time classes, before Java 8) They're not threadsafe

    private static DateFormat df = new SimpleDateFormat("yyyy MM dd HH mm ss.SSS");

    private static Date[] leapDates = new Date[17];

https://code.google.com/p/gogps/source/browse/src/main/java/org/gogpsproject/Time.java