Ignore:
Timestamp:
2018-01-16T19:59:36+01:00 (7 years ago)
Author:
donvip
Message:

fix GeoTools deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabFiles.java

    r33613 r34019  
    1414import java.util.Set;
    1515
    16 import org.geotools.data.DataUtilities;
    1716import org.geotools.data.shapefile.files.ShpFileType;
    1817import org.geotools.data.shapefile.files.ShpFiles;
     18import org.geotools.util.URLs;
    1919import org.openstreetmap.josm.tools.JosmRuntimeException;
    2020import org.openstreetmap.josm.tools.Logging;
     
    4646        }
    4747
    48         init(DataUtilities.fileToURL(headerFile));
    49         urls.put(ShpFileType.DBF, DataUtilities.fileToURL(dataFile));
     48        init(URLs.fileToUrl(headerFile));
     49        urls.put(ShpFileType.DBF, URLs.fileToUrl(dataFile));
    5050    }
    5151
     
    5454     */
    5555    private static URL fakeShpFile(File headerFile) {
    56         return DataUtilities.fileToURL(new File(headerFile.getAbsolutePath()+".shp"));
     56        return URLs.fileToUrl(new File(headerFile.getAbsolutePath()+".shp"));
    5757    }
    5858
     
    122122
    123123    private URL findExistingFile(ShpFileType shpFileType, URL value) {
    124         final File file = DataUtilities.urlToFile(value);
     124        final File file = URLs.urlToFile(value);
    125125        File directory = file.getParentFile();
    126126        if (directory != null && directory.exists()) {
Note: See TracChangeset for help on using the changeset viewer.