Changeset 7951 in josm
- Timestamp:
- 2015-01-10T05:00:43+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r7856 r7951 105 105 106 106 timer = new Timer(true); 107 timer.schedule(this, 1000 , PROP_INTERVAL.get() * 1000);107 timer.schedule(this, 1000L, PROP_INTERVAL.get() * 1000L); 108 108 MapView.addLayerChangeListener(this); 109 109 if (Main.isDisplayingMapView()) { … … 152 152 Date now = new Date(); 153 153 while (true) { 154 String filename = String.format("%1$s_%2$tY%2$tm%2$td_%2$tH%2$tM%2$tS%2$tL%3$s", layer.layerFileName, now, index == 0?"":"_" + index); 154 String filename = String.format("%1$s_%2$tY%2$tm%2$td_%2$tH%2$tM%2$tS%2$tL%3$s", 155 layer.layerFileName, now, index == 0 ? "" : "_" + index); 155 156 File result = new File(autosaveDir, filename+".osm"); 156 157 try { … … 374 375 if (!f.delete()) { 375 376 Main.warn(String.format("Could not delete backup file %s", f)); 376 } else {377 pidFile.delete();377 } else if (!pidFile.delete()) { 378 Main.warn(String.format("Could not delete PID file %s", pidFile)); 378 379 } 379 380 } -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r7082 r7951 129 129 in.read(b8); 130 130 in.read(b8); 131 version = new String(b8 );132 in.read(b8); 133 in.read(b8); 134 fromEllipsoid = new String(b8 );135 in.read(b8); 136 in.read(b8); 137 toEllipsoid = new String(b8 );131 version = new String(b8, StandardCharsets.UTF_8); 132 in.read(b8); 133 in.read(b8); 134 fromEllipsoid = new String(b8, StandardCharsets.UTF_8); 135 in.read(b8); 136 in.read(b8); 137 toEllipsoid = new String(b8, StandardCharsets.UTF_8); 138 138 in.read(b8); 139 139 in.read(b8);
Note:
See TracChangeset
for help on using the changeset viewer.