Changeset 16850 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui
- Timestamp:
- 2009-08-04T17:27:41+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java
r16769 r16850 14 14 import java.net.URLConnection; 15 15 import java.nio.charset.Charset; 16 import java.util.logging.Level; 16 17 import java.util.logging.Logger; 17 18 … … 21 22 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource; 22 23 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource.TileUpdate; 23 import static org.openstreetmap.josm.tools.I18n.tr;24 24 25 25 /** … … 54 54 * @param cacheDir 55 55 */ 56 public OsmFileCacheTileLoader(TileLoaderListener map, File cacheDir) throws SecurityException {56 public OsmFileCacheTileLoader(TileLoaderListener map, File cacheDir) throws SecurityException { 57 57 super(map); 58 58 String tempDir = null; … … 60 60 try { 61 61 tempDir = System.getProperty("java.io.tmpdir"); 62 } catch(SecurityException e) { 63 log.warning(tr("Failed to access system property ''{0}'' for security reasons. Exception was: {1}", "java.io.tmpdir", e.toString())); 62 } catch (SecurityException e) { 63 log.log(Level.WARNING, 64 "Failed to access system property ''java.io.tmpdir'' for security reasons. Exception was: " 65 + e.toString()); 64 66 throw e; // rethrow 65 67 }
Note:
See TracChangeset
for help on using the changeset viewer.