Ignore:
Timestamp:
2009-08-04T17:27:41+02:00 (15 years ago)
Author:
stotz
Message:

Removed JOSM dependency and logging error (please note that JMapViewer does not use log4j!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java

    r16769 r16850  
    1414import java.net.URLConnection;
    1515import java.nio.charset.Charset;
     16import java.util.logging.Level;
    1617import java.util.logging.Logger;
    1718
     
    2122import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
    2223import org.openstreetmap.gui.jmapviewer.interfaces.TileSource.TileUpdate;
    23 import static org.openstreetmap.josm.tools.I18n.tr;
    2424
    2525/**
     
    5454     * @param cacheDir
    5555     */
    56     public OsmFileCacheTileLoader(TileLoaderListener map, File cacheDir) throws SecurityException{
     56    public OsmFileCacheTileLoader(TileLoaderListener map, File cacheDir) throws SecurityException {
    5757        super(map);
    5858        String tempDir = null;
     
    6060        try {
    6161            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());
    6466            throw e; // rethrow
    6567        }
Note: See TracChangeset for help on using the changeset viewer.