Ignore:
Timestamp:
2012-01-24T21:52:43+01:00 (12 years ago)
Author:
jttt
Message:

Use final were appropriate

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java

    r4533 r4869  
    2626     * list of supported formats
    2727     */
    28     public static ArrayList<FileImporter> importers;
    29 
    30     public static ArrayList<FileExporter> exporters;
     28    public static final ArrayList<FileImporter> importers;
     29
     30    public static final ArrayList<FileExporter> exporters;
    3131
    3232    // add some file types only if the relevant classes are there;
     
    8888                    }
    8989                }
    90         );
     90                );
    9191    }
    9292
     
    198198            if (name.endsWith("."+ext))
    199199                return true;
    200         return false;
     200                return false;
    201201    }
    202202
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r4461 r4869  
    5151                JOptionPane.WARNING_MESSAGE,
    5252                HelpUtil.ht("/Action/SimplifyWay#SelectAWayToSimplify")
    53         );
     53                );
    5454    }
    5555
     
    6161                        tr("Simplify all selected ways"),
    6262                        null
    63                 ),
    64                 new ButtonSpec(
    65                         tr("Cancel"),
    66                         ImageProvider.get("cancel"),
    67                         tr("Cancel operation"),
    68                         null
    69                 )
     63                        ),
     64                        new ButtonSpec(
     65                                tr("Cancel"),
     66                                ImageProvider.get("cancel"),
     67                                tr("Cancel operation"),
     68                                null
     69                                )
    7070        };
    7171        int ret = HelpAwareOptionPane.showOptionDialog(
     
    7474                        "The selection contains {0} ways. Are you sure you want to simplify them all?",
    7575                        numWays
    76                 ),
    77                 tr("Simplify ways?"),
    78                 JOptionPane.WARNING_MESSAGE,
    79                 null, // no special icon
    80                 options,
    81                 options[0],
    82                 HelpUtil.ht("/Action/SimplifyWay#ConfirmSimplifyAll")
    83         );
     76                        ),
     77                        tr("Simplify ways?"),
     78                        JOptionPane.WARNING_MESSAGE,
     79                        null, // no special icon
     80                        options,
     81                        options[0],
     82                        HelpUtil.ht("/Action/SimplifyWay#ConfirmSimplifyAll")
     83                );
    8484        return ret == 0;
    8585    }
     
    9494                alertSelectAtLeastOneWay();
    9595                return;
    96             } else if (!confirmWayWithNodesOutsideBoundingBox(ways)) {
     96            } else if (!confirmWayWithNodesOutsideBoundingBox(ways))
    9797                return;
    98             }
    99              else if (ways.size() > 10) {
     98            else if (ways.size() > 10) {
    10099                if (!confirmSimplifyManyWays(ways.size()))
    101100                    return;
     
    114113                    trn("Simplify {0} way", "Simplify {0} ways", allCommands.size(), allCommands.size()),
    115114                    allCommands
    116             );
     115                    );
    117116            Main.main.undoRedo.add(rootCommand);
    118117        } finally {
     
    235234    }
    236235
    237     public static double EARTH_RAD = 6378137.0;
     236    public static final double EARTH_RAD = 6378137.0;
    238237
    239238    /* From Aviaton Formulary v1.3
Note: See TracChangeset for help on using the changeset viewer.