Ignore:
Timestamp:
2018-10-20T15:49:44+02:00 (6 years ago)
Author:
holgermappt
Message:

Fix linter errors: Whitespaces, make methods that do not access class variables static.

Location:
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustPlugin.java

    r33757 r34683  
    2323 */
    2424public class PhotoAdjustPlugin extends Plugin implements ActiveLayerChangeListener {
    25  
     25
    2626    private GeoImageLayer imageLayer;
    2727    private MouseAdapter mouseAdapter;
     
    3232     * Will be invoked by JOSM to bootstrap the plugin.
    3333     *
    34      * @param info  information about the plugin and its local installation   
     34     * @param info  information about the plugin and its local installation
    3535     */
    3636    public PhotoAdjustPlugin(PluginInformation info) {
    37         super(info);
     37        super(info);
    3838        GeoImageLayer.registerMenuAddition(new UntaggedGeoImageLayerAction());
    3939        PhotoPropertyEditor.init();
     
    7272
    7373    /**
    74      * Called when the JOSM map frame is created or destroyed. 
     74     * Called when the JOSM map frame is created or destroyed.
    7575     */
    7676    @Override
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java

    r34611 r34683  
    4141 */
    4242public class PhotoPropertyEditor {
     43
     44    /**
     45     * This class is not intended to be instantiated.  Throw an exception if
     46     * it is.
     47     */
     48    private PhotoPropertyEditor() {
     49        throw new IllegalStateException("Utility class");
     50    }
    4351
    4452    /**
     
    365373         * @return {@code true} if the values differ, {@code false} otherwise.
    366374         */
    367         private boolean isDoubleFieldDifferent(JosmTextField txtFld,
    368                                                Double value) {
     375        private static boolean isDoubleFieldDifferent(JosmTextField txtFld,
     376                                                      Double value) {
    369377            final Double fieldValue = getDoubleValue(txtFld);
    370378            if (fieldValue == null) {
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/UntaggedGeoImageLayerAction.java

    r34612 r34683  
    3535     * @return the layer this menu entry belongs to
    3636     */
    37     private GeoImageLayer getSelectedLayer() {
     37    private static GeoImageLayer getSelectedLayer() {
    3838        return (GeoImageLayer)LayerListDialog.getInstance().getModel()
    3939            .getSelectedLayers().get(0);
     
    4242    /** This is called after the menu entry was selected. */
    4343    @Override
    44     public void actionPerformed(ActionEvent arg0) {
     44    public void actionPerformed(ActionEvent evt) {
    4545        GeoImageLayer layer = getSelectedLayer();
    4646        if (layer != null) {
     
    6969     * @return {@code true} if there is any image without coordinates
    7070     */
    71     private boolean enabled(GeoImageLayer layer) {
     71    private static boolean enabled(GeoImageLayer layer) {
    7272        if (layer != null) {
    7373            for (ImageEntry img: layer.getImages()) {
Note: See TracChangeset for help on using the changeset viewer.