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/cadastre-fr/src/cadastre_fr
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r30532 r30701  
    227227            while ((ln = in.readLine()) != null) {
    228228                lines += ln;
     229            }
     230            if (Main.isDebugEnabled()) {
     231                Main.debug(lines);
    229232            }
    230233        } catch (MalformedURLException e) {
     
    544547    }
    545548
    546     private double tryParseDouble(String str) {
    547         try {
    548             return Double.parseDouble(str);
    549         } catch (NumberFormatException e) {
    550             return 0;
    551         }
    552     }
    553 
    554549    private void checkLayerDuplicates(WMSLayer wmsLayer) throws DuplicateLayerException {
    555550        if (Main.map != null) {
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreSessionImporter.java

    r29922 r30701  
    55import java.io.File;
    66import java.io.IOException;
    7 import java.io.InputStream;
    8 import java.net.URI;
    9 import java.net.URISyntaxException;
    10 import java.net.URL;
    117import java.net.URLDecoder;
    12 import java.net.URLEncoder;
    138
    149import javax.xml.xpath.XPath;
     
    2015import org.openstreetmap.josm.gui.layer.Layer;
    2116import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    22 import org.openstreetmap.josm.io.GpxImporter;
    2317import org.openstreetmap.josm.io.IllegalDataException;
    2418import org.openstreetmap.josm.io.session.SessionLayerImporter;
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/ImageModifier.java

    r23190 r30701  
    1515     */
    1616    //public static int cadastreBackgroundTransp = 1; // original white but transparent
    17 
    18     private static final long serialVersionUID = 1L;
    1917
    2018    protected int parcelColor = Color.RED.getRGB();
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java

    r29101 r30701  
    22package cadastre_fr;
    33
     4import static org.openstreetmap.josm.tools.I18n.marktr;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    5 import static org.openstreetmap.josm.tools.I18n.marktr;
    66
    77import java.awt.event.ActionEvent;
    88import java.awt.event.KeyEvent;
    9 
    10 import javax.swing.JOptionPane;
    119
    1210import org.openstreetmap.josm.Main;
     
    1412import org.openstreetmap.josm.tools.Shortcut;
    1513
     14/**
     15 * Action calling the wms grabber for cadastre.gouv.fr
     16 */
    1617public class MenuActionGrab extends JosmAction {
    17 
    18     /**
    19      * Action calling the wms grabber for cadastre.gouv.fr
    20      */
    21     private static final long serialVersionUID = 1L;
    2218
    2319    public static String name = marktr("Cadastre grab");
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionRefineGeoRef.java

    r29722 r30701  
    11package cadastre_fr;
    22
     3import static org.openstreetmap.josm.tools.I18n.marktr;
    34import static org.openstreetmap.josm.tools.I18n.tr;
    4 import static org.openstreetmap.josm.tools.I18n.marktr;
    55
    66import java.awt.event.ActionEvent;
    77
    8 import javax.swing.JOptionPane;
    9 
    10 import org.openstreetmap.josm.Main;
    118import org.openstreetmap.josm.actions.JosmAction;
    129
    13 @SuppressWarnings("serial")
    1410public class MenuActionRefineGeoRef extends JosmAction {
    1511
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java

    r24907 r30701  
    1414
    1515public class WMSDownloadAction /*extends JosmAction */{
    16 
    17     private static final long serialVersionUID = 1L;
    1816
    1917//    public WMSDownloadAction(String layerName) {
Note: See TracChangeset for help on using the changeset viewer.