Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (8 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

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

    r32425 r32556  
    1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others
     1// License: GPL. For details, see LICENSE file.
    22package cadastre_fr;
    33
     
    4646 * a city/town/village code.
    4747 *
    48  * @author Pieren <pieren3@gmail.com>,
    49  *         <matthieu.lochegnies@gmail.com> for the extension to codeCommune
     48 * @author Pieren &lt;pieren3@gmail.com&gt;,
     49 *         &lt;matthieu.lochegnies@gmail.com&gt; for the extension to codeCommune
    5050 *
    5151 * @version 2.6
     
    171171    public static String grabLayers, grabStyles = null;
    172172
    173     static private boolean menuEnabled = false;
     173    private static boolean menuEnabled = false;
    174174
    175175    private static String LAYER_BULDINGS = "CDIF:LS2";
     
    204204            cacheDir = Main.pref.get("cadastrewms.cacheDir");
    205205        }
    206         if (cacheDir.charAt(cacheDir.length()-1) != File.separatorChar )
     206        if (cacheDir.charAt(cacheDir.length()-1) != File.separatorChar)
    207207            cacheDir += File.separatorChar;
    208208        Main.info("current cache directory: "+cacheDir);
     
    212212        UploadAction.registerUploadHook(new CheckSourceUploadHook());
    213213
    214         registerSessionLayerExporter(WMSLayer.class , CadastreSessionExporter.class);
     214        registerSessionLayerExporter(WMSLayer.class, CadastreSessionExporter.class);
    215215        registerSessionLayerImporter("cadastre-fr", CadastreSessionImporter.class);
    216216    }
     
    277277        if (currentResolution.equals("high")) {
    278278            imageWidth = 1000; imageHeight = 800;
    279         } else if (currentResolution.equals("medium")){
     279        } else if (currentResolution.equals("medium")) {
    280280            imageWidth = 800; imageHeight = 600;
    281281        } else {
     
    339339            grabStyles = grabStyles.substring(0, grabStyles.length()-1);
    340340        } else {
    341             JOptionPane.showMessageDialog(Main.parent,tr("Please enable at least two WMS layers in the cadastre-fr "
     341            JOptionPane.showMessageDialog(Main.parent, tr("Please enable at least two WMS layers in the cadastre-fr "
    342342                    + "plugin configuration.\nLayers ''Building'' and ''Parcel'' added by default."));
    343343            Main.pref.put("cadastrewms.layerBuilding", true);
     
    430430        try {
    431431            Thread.sleep(milliseconds);
    432         } catch (InterruptedException e) {}
     432        } catch (InterruptedException e) {
     433            Main.debug(e);
     434        }
    433435    }
    434436
     
    439441            try {
    440442                dialog.setAlwaysOnTop(true);
    441             } catch(SecurityException e) {
     443            } catch (SecurityException e) {
    442444                Main.warn(tr("Warning: failed to put option pane dialog always on top. Exception was: {0}", e.toString()));
    443445            }
     
    457459        if (Main.map != null && Main.map.mapView != null) {
    458460            int wmsNewLayerPos = Main.getLayerManager().getLayers().size();
    459             for(Layer l : Main.getLayerManager().getLayersOfType(WMSLayer.class)) {
     461            for (Layer l : Main.getLayerManager().getLayersOfType(WMSLayer.class)) {
    460462                int wmsPos = Main.getLayerManager().getLayers().indexOf(l);
    461463                if (wmsPos < wmsNewLayerPos) wmsNewLayerPos = wmsPos;
     
    477479        try {
    478480            year = Integer.decode(srcYear);
    479         } catch (NumberFormatException e) {}
     481        } catch (NumberFormatException e) {
     482            Main.debug(e);
     483        }
    480484        if (srcYear.equals("AAAA") || (year != null && year < currentYear)) {
    481485            Main.info("Replace source year "+srcYear+" by current year "+currentYear);
Note: See TracChangeset for help on using the changeset viewer.