From b80de854f9985db7bb41c2e4687a54d73461773f Mon Sep 17 00:00:00 2001 From: caylasavitzky Date: Thu, 12 Sep 2024 12:07:10 -0400 Subject: [PATCH] fixing comment --- .../serialization/mappings/CurrencyMappingFactory.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java index 90a6eaa1..b70ab0d4 100644 --- a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java +++ b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/serialization/mappings/CurrencyMappingFactory.java @@ -17,13 +17,15 @@ import org.onebusaway.csv_entities.schema.DecimalFieldMappingFactory; -import java.util.Locale; public class CurrencyMappingFactory extends DecimalFieldMappingFactory { public CurrencyMappingFactory() { /** - * We override the default locale to en_US so that we always use "." as the - * decimal separator, even in locales that default to using "," insteaad. + * Java Decimal format converts this to 'up to 40 digits before decimal + * and exactly two digits after decimal. + * + * DecimalFieldMappingFactory ignores locale if not provided + * */ super("#######################################.00", null); }