Ticket #8902: longs.diff
File longs.diff, 5.3 KB (added by , 11 years ago) |
---|
-
src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
293 293 */ 294 294 @Override 295 295 public Date getTimestamp() { 296 return new Date(timestamp * 1000 l);296 return new Date(timestamp * 1000L); 297 297 } 298 298 299 299 @Override -
src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
864 864 865 865 // Find day difference 866 866 final int dayOffset = (int)Math.round(diffInH / 24); // days 867 double tmz = diff - dayOffset*24*60*60 l; // seconds867 double tmz = diff - dayOffset*24*60*60L; // seconds 868 868 869 869 // In hours, rounded to two decimal places 870 870 tmz = (double)Math.round(tmz*100/(60*60)) / 100; … … 1044 1044 1045 1045 // Find day difference 1046 1046 int dayOffset = (int)Math.round(diffInH / 24); // days 1047 double tz = diff - dayOffset*24*60*60 l; // seconds1047 double tz = diff - dayOffset*24*60*60L; // seconds 1048 1048 1049 1049 // In hours, rounded to two decimal places 1050 1050 tz = (double)Math.round(tz*100/(60*60)) / 100; -
src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
155 155 private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener { 156 156 157 157 boolean mouseIsDragging = false; 158 long lastTimeForMousePoint = 0 l;158 long lastTimeForMousePoint = 0L; 159 159 Point mousePointInImg = null; 160 160 161 161 /** 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
25 25 public File zipIcons; 26 26 27 27 private ImageIcon imageIcon; 28 private long lastMTime = 0 l;28 private long lastMTime = 0L; 29 29 30 30 /****** 31 31 * The following fields is additional information found in the header -
src/org/openstreetmap/josm/io/MirroredInputStream.java
32 32 InputStream fs = null; 33 33 File file = null; 34 34 35 public final static long DEFAULT_MAXTIME = -1 l;35 public final static long DEFAULT_MAXTIME = -1L; 36 36 37 37 public MirroredInputStream(String name) throws IOException { 38 38 this(name, null, DEFAULT_MAXTIME); -
src/org/openstreetmap/josm/io/OsmChangesetContentParser.java
75 75 if (v == null) { 76 76 throwException(tr("Missing mandatory attribute ''{0}''.", name)); 77 77 } 78 Long l = 0 l;78 Long l = 0L; 79 79 try { 80 80 l = Long.parseLong(v); 81 81 } catch(NumberFormatException e) { -
src/org/openstreetmap/josm/io/OsmHistoryReader.java
71 71 if (v == null) { 72 72 throwException(tr("Missing mandatory attribute ''{0}''.", name)); 73 73 } 74 Long l = 0 l;74 Long l = 0L; 75 75 try { 76 76 l = Long.parseLong(v); 77 77 } catch(NumberFormatException e) { -
src/org/openstreetmap/josm/plugins/PluginHandler.java
280 280 long tim = System.currentTimeMillis(); 281 281 long last = Main.pref.getLong("pluginmanager.lastupdate", 0); 282 282 Integer maxTime = Main.pref.getInteger("pluginmanager.time-based-update.interval", DEFAULT_TIME_BASED_UPDATE_INTERVAL); 283 long d = (tim - last) / (24 * 60 * 60 * 1000 l);283 long d = (tim - last) / (24 * 60 * 60 * 1000L); 284 284 if ((last <= 0) || (maxTime <= 0)) { 285 285 Main.pref.put("pluginmanager.lastupdate", Long.toString(tim)); 286 286 } else if (d > maxTime) {