Changeset 12435 in josm


Ignore:
Timestamp:
2017-06-25T16:48:20+02:00 (5 months ago)
Author:
Don-vip
Message:

sonar - pmd:SimpleDateFormatNeedsLocale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/nmea/NmeaReader.java

    r12434 r12435  
    1313import java.util.Collections;
    1414import java.util.Date;
     15import java.util.Locale;
    1516import java.util.Optional;
    1617
     
    131132    public GpxData data;
    132133
    133     private final SimpleDateFormat rmcTimeFmt = new SimpleDateFormat("ddMMyyHHmmss.SSS");
    134     private final SimpleDateFormat rmcTimeFmtStd = new SimpleDateFormat("ddMMyyHHmmss");
     134    private final SimpleDateFormat rmcTimeFmt = new SimpleDateFormat("ddMMyyHHmmss.SSS", Locale.ENGLISH);
     135    private final SimpleDateFormat rmcTimeFmtStd = new SimpleDateFormat("ddMMyyHHmmss", Locale.ENGLISH);
    135136
    136137    private Date readTime(String p) {
Note: See TracChangeset for help on using the changeset viewer.