Ignore:
Timestamp:
2016-05-11T04:44:00+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S2184 - Math operands should be cast before assignment

Location:
trunk/src/org/openstreetmap/josm/data/coor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r10060 r10181  
    174174        if (cDms60.equals(sSeconds)) {
    175175            sSeconds = cDms00;
    176             sMinutes = cDmsMinuteFormatter.format(tMinutes+1);
     176            sMinutes = cDmsMinuteFormatter.format(tMinutes+1L);
    177177        }
    178178        if ("60".equals(sMinutes)) {
  • trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java

    r10001 r10181  
    2525        // The question is how far we move for each bit being set.
    2626        // In the case of the top level, we move half of the world.
    27         double xUnit = X_PARTS/2;
    28         double yUnit = Y_PARTS/2;
    29         long shift = (NR_LEVELS*2)-2;
     27        double xUnit = X_PARTS/2d;
     28        double yUnit = Y_PARTS/2d;
     29        long shift = (NR_LEVELS*2L)-2L;
    3030
    3131        double x = 0;
Note: See TracChangeset for help on using the changeset viewer.