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

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

Location:
trunk/src/org/openstreetmap/josm/io
Files:
3 edited

Legend:

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

    r9995 r10181  
    7676
    7777    public static final long DEFAULT_MAXTIME = -1L;
    78     public static final long DAYS = 24*60*60; // factor to get caching time in days
     78    public static final long DAYS = 24L*60L*60L; // factor to get caching time in days
    7979
    8080    private final Map<String, String> httpHeaders = new ConcurrentHashMap<>();
  • trunk/src/org/openstreetmap/josm/io/MessageNotifier.java

    r8846 r10181  
    9696            Main.info(tr("{0} not available (offline mode)", tr("Message notifier")));
    9797        } else if (!isRunning() && interval > 0 && isUserEnoughIdentified()) {
    98             task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, interval * 60, TimeUnit.SECONDS);
     98            task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, interval * 60L, TimeUnit.SECONDS);
    9999            Main.info("Message notifier active (checks every "+interval+" minute"+(interval > 1 ? "s" : "")+')');
    100100        }
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r10001 r10181  
    6868        }
    6969        double uploadsPerMs = (double) progress / elapsed;
    70         double uploadsLeft = listSize - progress;
     70        double uploadsLeft = (double) listSize - progress;
    7171        long msLeft = (long) (uploadsLeft / uploadsPerMs);
    7272        long minutesLeft = msLeft / MSECS_PER_MINUTE;
Note: See TracChangeset for help on using the changeset viewer.