Ignore:
Timestamp:
2016-10-30T21:24:41+01:00 (10 years ago)
Author:
donvip
Message:

findbugs

File:
1 edited

Legend:

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

    r32556 r33047  
    99import java.io.File;
    1010import java.io.IOException;
     11import java.util.Locale;
    1112
    1213import javax.imageio.ImageIO;
     
    2930public class MenuActionSaveRasterAs extends JosmAction {
    3031
    31     public static String name = marktr("Save image as...");
     32    public static final String NAME = marktr("Save image as...");
    3233
    3334    private static final long serialVersionUID = 1L;
     
    4142                return true;
    4243            }
    43             return file.getName().toLowerCase().endsWith(".png");
     44            return file.getName().toLowerCase(Locale.ENGLISH).endsWith(".png");
    4445        }
    4546
     
    5657                return true;
    5758            }
    58             return file.getName().toLowerCase().endsWith(".tif");
     59            return file.getName().toLowerCase(Locale.ENGLISH).endsWith(".tif");
    5960        }
    6061
     
    6869    FiltrePng filtrePng = new FiltrePng();
    6970
     71    /**
     72     * Constructs a new {@code MenuActionSaveRasterAs}.
     73     * @param wmsLayer WMS layer
     74     */
    7075    public MenuActionSaveRasterAs(WMSLayer wmsLayer) {
    71         super(tr(name), "save", tr("Export image (only raster images)"), null, false);
     76        super(tr(NAME), "save", tr("Export image (only raster images)"), null, false);
    7277        this.wmsLayer = wmsLayer;
    7378    }
     
    126131                    coverage.dispose(true);
    127132                } catch (Exception e) {
    128                     // TODO Auto-generated catch block
    129                     e.printStackTrace();
     133                    Main.error(e);
    130134                }
    131135            }
Note: See TracChangeset for help on using the changeset viewer.