altoslib: NumberFormat can't be shared between parsers
authorKeith Packard <keithp@keithp.com>
Sun, 7 Oct 2018 20:49:48 +0000 (14:49 -0600)
committerKeith Packard <keithp@keithp.com>
Sun, 7 Oct 2018 20:55:35 +0000 (14:55 -0600)
commit173e72429fb494ea3832e3e38ee90f165fbff4cf
treee0a703b5de5a888ad58cfa5cfd9614ea86636d67
parent1b53a54b032c21b6e8ffb085aa56b9ffdff53d7e
altoslib: NumberFormat can't be shared between parsers

AltosJson uses NumberFormat to ensure locale-independent parsing of
values. However, NumberFormat appears to have some internal state
which means that each thread needs to have an independent NumberFormat
object. Create one for each parser as needed.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosJson.java