3 ms·
> until you find out SimpleDateFormat and a bunch of other classes built tight into your standard library aren't thread safe true, but DateTimeFormatter has be
by peoplefromibiza 3y ago
> until you find out SimpleDateFormat and a bunch of other classes built tight into your standard library aren't thread safe
true, but DateTimeFormatter has been available since Java 8, released almost 10 years ago.
VirtualThreads will be available in Java tomorrow
Also: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html#synchronization https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDa...