Ignore:
Timestamp:
2014-10-04T17:28:45+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix various compilation warnings

Location:
applications/editors/josm/plugins/NanoLog/src/nanolog
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/NanoLog/src/nanolog/Correlator.java

    r30527 r30701  
    7373    public static void correlate( List<NanoLogEntry> entries, GpxData data, long offset ) {
    7474        List<NanoLogEntry> sortedEntries = new ArrayList<NanoLogEntry>(entries);
    75         int ret = 0;
     75        //int ret = 0;
    7676        PrimaryDateParser dateParser = new PrimaryDateParser();
    7777        Collections.sort(sortedEntries);
     
    8787                        try {
    8888                            long curWpTime = dateParser.parse(curWpTimeStr).getTime() + offset;
    89                             ret += matchPoints(sortedEntries, prevWp, prevWpTime, curWp, curWpTime, offset);
     89                            /*ret +=*/ matchPoints(sortedEntries, prevWp, prevWpTime, curWp, curWpTime, offset);
    9090
    9191                            prevWp = curWp;
  • applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogEntry.java

    r30491 r30701  
    11package nanolog;
    22
    3 import java.awt.*;
    4 import java.util.*;
    5 import org.openstreetmap.josm.Main;
    6 import org.openstreetmap.josm.data.Bounds;
     3import java.util.Date;
     4
    75import org.openstreetmap.josm.data.coor.LatLon;
    8 import org.openstreetmap.josm.gui.MapView;
    96
    107/**
  • applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogLayer.java

    r30491 r30701  
    305305        private boolean toZero;
    306306
    307         public CorrelateEntries() {
    308             this(false);
    309         }
    310 
    311307        public CorrelateEntries( boolean toZero ) {
    312308            super(toZero ? tr("Correlate with GPX...") : tr("Put on GPX..."), "nanolog/correlate", tr("Correlate entries with GPS trace"), null, false);
  • applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPanel.java

    r30491 r30701  
    11package nanolog;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.awt.Rectangle;
    46import java.text.SimpleDateFormat;
    5 import java.util.*;
    6 import javax.swing.*;
     7import java.util.ArrayList;
     8import java.util.List;
     9
     10import javax.swing.AbstractListModel;
     11import javax.swing.JList;
     12
    713import nanolog.NanoLogLayer.NanoLogLayerListener;
     14
    815import org.openstreetmap.josm.Main;
    916import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    1017import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    1118import org.openstreetmap.josm.gui.layer.Layer;
    12 import static org.openstreetmap.josm.tools.I18n.tr;
    13 import org.openstreetmap.josm.tools.Shortcut;
    1419
    1520/**
Note: See TracChangeset for help on using the changeset viewer.