Changeset 6090 in josm


Ignore:
Timestamp:
2013-07-26T21:45:36+02:00 (11 years ago)
Author:
akks
Message:

see #8902 - long literals readability 4321l => 4321L (patch by shinigami)

Location:
trunk/src/org/openstreetmap/josm
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

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

    r6084 r6090  
    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
     
    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
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r6084 r6090  
    156156
    157157        boolean mouseIsDragging = false;
    158         long lastTimeForMousePoint = 0l;
     158        long lastTimeForMousePoint = 0L;
    159159        Point mousePointInImg = null;
    160160
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java

    r5275 r6090  
    2626
    2727    private ImageIcon imageIcon;
    28     private long lastMTime = 0l;
     28    private long lastMTime = 0L;
    2929
    3030    /******
  • trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java

    r6073 r6090  
    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 {
  • trunk/src/org/openstreetmap/josm/io/OsmChangesetContentParser.java

    r6070 r6090  
    7676                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    7777            }
    78             Long l = 0l;
     78            Long l = 0L;
    7979            try {
    8080                l = Long.parseLong(v);
  • trunk/src/org/openstreetmap/josm/io/OsmHistoryReader.java

    r6070 r6090  
    7272                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    7373            }
    74             Long l = 0l;
     74            Long l = 0L;
    7575            try {
    7676                l = Long.parseLong(v);
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r6087 r6090  
    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));
Note: See TracChangeset for help on using the changeset viewer.