Changeset 9752 in josm for trunk/src


Ignore:
Timestamp:
2016-02-07T17:19:21+01:00 (9 years ago)
Author:
Don-vip
Message:

see #12486 - findbugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

    r9742 r9752  
    9696
    9797    private final transient GeoImageLayer yLayer;
    98     private Timezone timezone;
    99     private Offset delta;
     98    private transient Timezone timezone;
     99    private transient Offset delta;
    100100
    101101    /**
     
    14671467
    14681468        int getDayOffset() {
    1469             final double diffInH = (double) getMilliseconds() / 1000. / 60 / 60; // hours
     1469            final double diffInH = getMilliseconds() / 1000. / 60 / 60; // hours
    14701470
    14711471            // Find day difference
     
    14741474
    14751475        Offset withoutDayOffset() {
    1476             return milliseconds(getMilliseconds() - getDayOffset() * 24 * 60 * 60 * 1000);
     1476            return milliseconds(getMilliseconds() - getDayOffset() * 24L * 60L * 60L * 1000L);
    14771477        }
    14781478
    14791479        Pair<Timezone, Offset> splitOutTimezone() {
    14801480            // In hours, rounded to two decimal places
    1481             double tz = (double) Math.round(withoutDayOffset().getSeconds() * 100 / (60 * 60)) / 100;
     1481            double tz = (withoutDayOffset().getSeconds() * 100L / (60L * 60L)) / 100.0;
    14821482
    14831483            // Due to imprecise clocks we might get a "+3:28" timezone, which should obviously be 3:30 with
Note: See TracChangeset for help on using the changeset viewer.