Ticket #8902: longs.diff

File longs.diff, 5.3 KB (added by shinigami, 11 years ago)

code style - long literals - changed ending l to L, small l looks like 1

  • src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

     
    293293     */
    294294    @Override
    295295    public Date getTimestamp() {
    296         return new Date(timestamp * 1000l);
     296        return new Date(timestamp * 1000L);
    297297    }
    298298
    299299    @Override
  • src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

     
    864864
    865865            // Find day difference
    866866            final int dayOffset = (int)Math.round(diffInH / 24); // days
    867             double tmz = diff - dayOffset*24*60*60l;  // seconds
     867            double tmz = diff - dayOffset*24*60*60L;  // seconds
    868868
    869869            // In hours, rounded to two decimal places
    870870            tmz = (double)Math.round(tmz*100/(60*60)) / 100;
     
    10441044
    10451045            // Find day difference
    10461046            int dayOffset = (int)Math.round(diffInH / 24); // days
    1047             double tz = diff - dayOffset*24*60*60l;  // seconds
     1047            double tz = diff - dayOffset*24*60*60L;  // seconds
    10481048
    10491049            // In hours, rounded to two decimal places
    10501050            tz = (double)Math.round(tz*100/(60*60)) / 100;
  • src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

     
    155155    private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener {
    156156
    157157        boolean mouseIsDragging = false;
    158         long lastTimeForMousePoint = 0l;
     158        long lastTimeForMousePoint = 0L;
    159159        Point mousePointInImg = null;
    160160
    161161        /** Zoom in and out, trying to preserve the point of the image that was under the mouse cursor
  • src/org/openstreetmap/josm/gui/mappaint/StyleSource.java

     
    2525    public File zipIcons;
    2626
    2727    private ImageIcon imageIcon;
    28     private long lastMTime = 0l;
     28    private long lastMTime = 0L;
    2929
    3030    /******
    3131     * The following fields is additional information found in the header
  • src/org/openstreetmap/josm/io/MirroredInputStream.java

     
    3232    InputStream fs = null;
    3333    File file = null;
    3434
    35     public final static long DEFAULT_MAXTIME = -1l;
     35    public final static long DEFAULT_MAXTIME = -1L;
    3636
    3737    public MirroredInputStream(String name) throws IOException {
    3838        this(name, null, DEFAULT_MAXTIME);
  • src/org/openstreetmap/josm/io/OsmChangesetContentParser.java

     
    7575            if (v == null) {
    7676                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    7777            }
    78             Long l = 0l;
     78            Long l = 0L;
    7979            try {
    8080                l = Long.parseLong(v);
    8181            } catch(NumberFormatException e) {
  • src/org/openstreetmap/josm/io/OsmHistoryReader.java

     
    7171            if (v == null) {
    7272                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    7373            }
    74             Long l = 0l;
     74            Long l = 0L;
    7575            try {
    7676                l = Long.parseLong(v);
    7777            } catch(NumberFormatException e) {
  • src/org/openstreetmap/josm/plugins/PluginHandler.java

     
    280280            long tim = System.currentTimeMillis();
    281281            long last = Main.pref.getLong("pluginmanager.lastupdate", 0);
    282282            Integer maxTime = Main.pref.getInteger("pluginmanager.time-based-update.interval", DEFAULT_TIME_BASED_UPDATE_INTERVAL);
    283             long d = (tim - last) / (24 * 60 * 60 * 1000l);
     283            long d = (tim - last) / (24 * 60 * 60 * 1000L);
    284284            if ((last <= 0) || (maxTime <= 0)) {
    285285                Main.pref.put("pluginmanager.lastupdate", Long.toString(tim));
    286286            } else if (d > maxTime) {