planetiler/planetiler-core/src/main/java/com
Erik Price ccf098115e
Move NumberFormat to thread-local variable (#387)
* Move NumberFormat to thread-local variable

The NumberFormat class isn't thread safe, and sharing one instance
across threads allowed for races which resulted in otherwise valid OSM
tags not being parsed correctly.

* Add supression for ThreadLocal use

* Use ThreadLocal for NumberFormat objects in `Format`

* Wrap `NumberFormat` instances rather than hashmap
2022-11-21 20:34:28 -05:00
..
onthegomap/planetiler Move NumberFormat to thread-local variable (#387) 2022-11-21 20:34:28 -05:00