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

checkstyle

File:
1 edited

Legend:

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

    r32329 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
     
    3939            if (file.exists()) {
    4040                String filename = file.getName();
    41                 String ext = (filename.lastIndexOf('.')==-1)?"":filename.substring(filename.lastIndexOf('.')+1,filename.length());
     41                String ext = (filename.lastIndexOf('.') == -1) ? "" : filename.substring(filename.lastIndexOf('.')+1, filename.length());
    4242                if ((ext.length() == 3 && ext.substring(0, CacheControl.C_LAMBERT_CC_9Z.length()).equals(CacheControl.C_LAMBERT_CC_9Z) &&
    4343                    !(CadastrePlugin.isLambert_cc9()))
     
    4545                            !(CadastrePlugin.isUtm_france_dom()))
    4646                    || (ext.length() == 1) && !(CadastrePlugin.isLambert())) {
    47                         JOptionPane.showMessageDialog(Main.parent, tr("{0} not allowed with the current projection", filename), tr("Error"), JOptionPane.ERROR_MESSAGE);
     47                        JOptionPane.showMessageDialog(Main.parent, tr("{0} not allowed with the current projection", filename),
     48                                tr("Error"), JOptionPane.ERROR_MESSAGE);
    4849                        continue;
    4950                } else {
     
    5657                    try {
    5758                        int cacheZone = Integer.parseInt(ext) - 1;
    58                         if (cacheZone >=0 && cacheZone <= 9) {
     59                        if (cacheZone >= 0 && cacheZone <= 9) {
    5960                            if (cacheZone != layoutZone) {
    60                                 JOptionPane.showMessageDialog(Main.parent, tr("Cannot load cache {0} which is not compatible with current projection zone", filename), tr("Error"), JOptionPane.ERROR_MESSAGE);
     61                                JOptionPane.showMessageDialog(Main.parent,
     62                                        tr("Cannot load cache {0} which is not compatible with current projection zone", filename),
     63                                        tr("Error"), JOptionPane.ERROR_MESSAGE);
    6164                                continue nextFile;
    6265                            } else
Note: See TracChangeset for help on using the changeset viewer.