Changeset 32359 in osm


Ignore:
Timestamp:
2016-06-22T01:50:28+02:00 (8 years ago)
Author:
donvip
Message:

update to new JOSM + findbugs

Location:
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVImporter.java

    r30768 r32359  
    8989       
    9090                // add layer to show way points
    91                 Main.main.addLayer(gpxLayer);
     91                Main.getLayerManager().addLayer(gpxLayer);
    9292       
    9393                progressMonitor.setTicksCount(3);
     
    111111                        Main.info("Data size: " + ml.data.size());
    112112           
    113                         Main.main.addLayer(ml);
     113                        Main.getLayerManager().addLayer(ml);
    114114                        if (ml.data.isEmpty()) {
    115115                            Main.warn("File contains no markers.");
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java

    r30768 r32359  
    514514    public File getVoxFilePath(String fileDir, String voxFile) {
    515515        // The FAT16 file name is interpreted differently from case-sensitive
    516         // file systems, so we
    517         // have to test several variants
     516        // file systems, so we have to test several variants
    518517        String[] fileNameVariants = new String[] { voxFile,
    519518            voxFile.toLowerCase(), voxFile.toUpperCase() };
     
    541540        // Position errors (dop = dilution of position)
    542541        f = ColumbusCSVUtils.floatFromString(csvLine[11]);
    543         if (f != Float.NaN) {
     542        if (!Float.isNaN(f)) {
    544543            wpt.attr.put(ColumbusCSVReader.PDOP_TAG, f);
    545544        } else {
     
    548547   
    549548        f = ColumbusCSVUtils.floatFromString(csvLine[12]);
    550         if (f != Float.NaN) {
     549        if (!Float.isNaN(f)) {
    551550            wpt.attr.put(ColumbusCSVReader.HDOP_TAG, f);
    552551        } else {
     
    555554   
    556555        f = ColumbusCSVUtils.floatFromString(csvLine[13]);
    557         if (f != Float.NaN) {
     556        if (!Float.isNaN(f)) {
    558557            wpt.attr.put(ColumbusCSVReader.VDOP_TAG, f);
    559558        } else {
Note: See TracChangeset for help on using the changeset viewer.