Changeset 15586 in josm


Ignore:
Timestamp:
2019-12-13T00:48:33+01:00 (5 years ago)
Author:
Don-vip
Message:

code cleanup

Location:
trunk
Files:
59 edited

Legend:

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

    r14153 r15586  
    7171                        + "This may both clutter your screen with browser windows<br>"
    7272                        + "and take some time to finish.", numBrowsers, numBrowsers);
    73         ButtonSpec[] spec = new ButtonSpec[] {
     73        ButtonSpec[] spec = {
    7474                new ButtonSpec(
    7575                        tr("Continue"),
  • trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r15168 r15586  
    220220                    waysToDelete.add(w);
    221221                } else {
    222                     ButtonSpec[] options = new ButtonSpec[] {
     222                    ButtonSpec[] options = {
    223223                            new ButtonSpec(
    224224                                    tr("Abort Merging"),
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r15471 r15586  
    8181
    8282    protected boolean confirmSimplifyManyWays(int numWays) {
    83         ButtonSpec[] options = new ButtonSpec[] {
     83        ButtonSpec[] options = {
    8484                new ButtonSpec(
    8585                        tr("Yes"),
  • trunk/src/org/openstreetmap/josm/actions/corrector/TagCorrector.java

    r14256 r15586  
    5959    public abstract Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException;
    6060
    61     private static final String[] APPLICATION_OPTIONS = new String[] {
     61    private static final String[] APPLICATION_OPTIONS = {
    6262            tr("Apply selected changes"),
    6363            tr("Do not apply changes"),
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java

    r15358 r15586  
    169169     */
    170170    protected void handlePotentiallyDeletedPrimitives(Set<OsmPrimitive> potentiallyDeleted) {
    171         ButtonSpec[] options = new ButtonSpec[] {
     171        ButtonSpec[] options = {
    172172                new ButtonSpec(
    173173                        tr("Check on the server"),
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r14397 r15586  
    995995    }
    996996
    997 
    998997    /**
    999998     * Gets a node index from selected way after given index.
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r15356 r15586  
    168168    }
    169169
    170 
    171170    /**
    172171     * Builds and shows the search dialog.
  • trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java

    r14848 r15586  
    280280        return !redoCommands.isEmpty();
    281281    }
    282 
    283282
    284283    /**
  • trunk/src/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelper.java

    r15410 r15586  
    145145    }
    146146
    147 
    148147    /**
    149148     * Moves reader to first occurrence of the structure equivalent of Xpath tags[0]/tags[1]../tags[n]. If fails to find
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r15415 r15586  
    446446        return output.toString();
    447447    }
    448 
    449448
    450449    /**
     
    10771076    }
    10781077
    1079 
    10801078    /**
    10811079     * @return set of projection codes that this TileSource supports
  • trunk/src/org/openstreetmap/josm/data/osm/DataSelectionListener.java

    r12970 r15586  
    113113        }
    114114    }
    115 
    116115
    117116    /**
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r15535 r15586  
    312312    }
    313313
    314 
    315314    /* -------
    316315    /* FLAGS
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java

    r13207 r15586  
    230230    }
    231231
    232 
    233232    /**
    234233     * <p>Unregisters a map renderer class.</p>
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r15292 r15586  
    791791    }
    792792
    793 
    794793    /**
    795794     * Draw the icon for a given area. Normally, the icon is drawn around the center of the area.
  • trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java

    r15562 r15586  
    290290
    291291    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
    292     private static final String[] INFRASTRUCTURE_TLDS = new String[] {
     292    private static final String[] INFRASTRUCTURE_TLDS = {
    293293        "arpa",               // internet infrastructure
    294294    };
    295295
    296296    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
    297     private static final String[] GENERIC_TLDS = new String[] {
     297    private static final String[] GENERIC_TLDS = {
    298298        // Taken from Version 2019120700, Last Updated Sat Dec  7 07:07:01 2019 UTC
    299299        "aaa", // aaa American Automobile Association, Inc.
     
    15241524
    15251525    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
    1526     private static final String[] COUNTRY_CODE_TLDS = new String[] {
     1526    private static final String[] COUNTRY_CODE_TLDS = {
    15271527        "ac",                 // Ascension Island
    15281528        "ad",                 // Andorra
     
    18221822
    18231823    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
    1824     private static final String[] LOCAL_TLDS = new String[] {
     1824    private static final String[] LOCAL_TLDS = {
    18251825       "localdomain",         // Also widely used as localhost.localdomain
    18261826       "localhost",           // RFC2606 defined
  • trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java

    r11747 r15586  
    180180    }
    181181
    182 
    183182    /**
    184183     * Validate a value against the set of regular expressions
  • trunk/src/org/openstreetmap/josm/data/validation/tests/InternetTags.java

    r14803 r15586  
    3636     * List of keys subject to URL validation.
    3737     */
    38     private static final String[] URL_KEYS = new String[] {
     38    private static final String[] URL_KEYS = {
    3939        "url", "source:url",
    4040        "website", "contact:website", "heritage:website", "source:website"
     
    4444     * List of keys subject to email validation.
    4545     */
    46     private static final String[] EMAIL_KEYS = new String[] {
     46    private static final String[] EMAIL_KEYS = {
    4747        "email", "contact:email"
    4848    };
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r15463 r15586  
    9595    final Set<OsmPrimitive> tested = new HashSet<>();
    9696
    97 
    9897    /**
    9998    * A grouped MapCSSRule with multiple selectors for a single declaration.
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java

    r15510 r15586  
    519519    }
    520520
    521 
    522521    /**
    523522     * Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.
     
    633632    }
    634633
    635 
    636634    /**
    637635     * Find ways which are crossing without sharing a node.
  • trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java

    r12846 r15586  
    4242    private final JosmTextArea taLog = new JosmTextArea(5, 50);
    4343    private final JScrollPane spLog = new JScrollPane(taLog);
    44 
    4544
    4645    /**
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java

    r13130 r15586  
    3939 */
    4040public class TagMerger extends AbstractMergePanel implements IConflictResolver {
    41     private static final String[] KEY_VALUE = new String[] {tr("Key"), tr("Value")};
     41    private static final String[] KEY_VALUE = {tr("Key"), tr("Value")};
    4242
    4343    private final TagMergeModel model = new TagMergeModel();
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java

    r14214 r15586  
    3131    private String value;
    3232
    33     private static final String[] SUMMABLE_KEYS = new String[] {
     33    private static final String[] SUMMABLE_KEYS = {
    3434        "capacity(:.+)?", "step_count"
    3535    };
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java

    r14214 r15586  
    368368
    369369    static final class StatisticsTableModel extends DefaultTableModel {
    370         private static final String[] HEADERS = new String[] {tr("Paste ..."), tr("From ..."), tr("To ...") };
     370        private static final String[] HEADERS = {tr("Paste ..."), tr("From ..."), tr("To ...") };
    371371        private final transient List<StatisticsInfo> data = new ArrayList<>();
    372372
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java

    r15444 r15586  
    616616        sb.append("<html>").append(msg1).append("</html>");
    617617        if (numNewConflicts > 0) {
    618             final ButtonSpec[] options = new ButtonSpec[] {
     618            final ButtonSpec[] options = {
    619619                    new ButtonSpec(
    620620                            tr("OK"),
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r14931 r15586  
    325325                // ask if the whole set should be ignored
    326326                if (asked == JOptionPane.DEFAULT_OPTION) {
    327                     String[] a = new String[] {tr("Whole group"), tr("Single elements"), tr("Nothing")};
     327                    String[] a = {tr("Whole group"), tr("Single elements"), tr("Nothing")};
    328328                    asked = JOptionPane.showOptionDialog(MainApplication.getMainFrame(), tr("Ignore whole group or individual elements?"),
    329329                            tr("Ignoring elements"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null,
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorListManagementDialog.java

    r15077 r15586  
    3838import org.openstreetmap.josm.tools.ImageProvider;
    3939import org.openstreetmap.josm.tools.Logging;
    40 
    4140
    4241/**
     
    214213        tree.updateUI();
    215214    }
    216 
    217215
    218216    /**
  • trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java

    r15496 r15586  
    559559
    560560        // TODO: Nicer color palette
    561         private static final Color[] COLORS = new Color[] {
     561        private static final Color[] COLORS = {
    562562                Color.RED,
    563563                Color.ORANGE,
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r15581 r15586  
    202202    private final EditAction editAction = new EditAction();
    203203    private final DeleteAction deleteAction = new DeleteAction();
    204     private final JosmAction[] josmActions = new JosmAction[]{addAction, editAction, deleteAction};
     204    private final JosmAction[] josmActions = {addAction, editAction, deleteAction};
    205205
    206206    private final transient HighlightHelper highlightHelper = new HighlightHelper();
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/CancelAction.java

    r14153 r15586  
    6161
    6262    protected int confirmClosingByCancel() {
    63         ButtonSpec[] options = new ButtonSpec[] {
     63        ButtonSpec[] options = {
    6464                new ButtonSpec(
    6565                        tr("Yes, save the changes and close"),
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/RefreshAction.java

    r14690 r15586  
    7777
    7878    protected int confirmDiscardDirtyData() {
    79         ButtonSpec[] options = new ButtonSpec[] {
     79        ButtonSpec[] options = {
    8080                new ButtonSpec(
    8181                        tr("Yes, discard changes and reload"),
     
    106106
    107107    protected int confirmCloseDeletedRelation() {
    108         ButtonSpec[] options = new ButtonSpec[] {
     108        ButtonSpec[] options = {
    109109                new ButtonSpec(
    110110                        tr("Yes"),
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java

    r14153 r15586  
    107107
    108108    protected boolean confirmClosingBecauseOfDirtyState() {
    109         ButtonSpec[] options = new ButtonSpec[] {
     109        ButtonSpec[] options = {
    110110                new ButtonSpec(
    111111                        tr("Yes, create a conflict and close"),
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SetRoleAction.java

    r14153 r15586  
    5555                    "<br>"
    5656                    + tr("Do you really want to apply the new role?") + "</html>";
    57         String[] options = new String[] {
     57        String[] options = {
    5858                tr("Yes, apply it"),
    5959                tr("No, do not apply")
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculator.java

    r15382 r15586  
    342342    }
    343343
    344 
    345344    /**
    346345     * Free resources.
  • trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java

    r15011 r15586  
    7474    private JTable tblSearchResults;
    7575    private DownloadDialog parent;
    76     private static final Server[] SERVERS = new Server[] {
     76    private static final Server[] SERVERS = {
    7777        new Server("Nominatim", NameFinder.NOMINATIM_URL, tr("Class Type"), tr("Bounds"))
    7878    };
  • trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java

    r14153 r15586  
    128128        default: throw new AssertionError();
    129129        }
    130         ButtonSpec[] spec = new ButtonSpec[] {
     130        ButtonSpec[] spec = {
    131131                new ButtonSpec(
    132132                        lbl,
     
    176176     */
    177177    protected void handleUploadConflictForUnknownConflict() {
    178         ButtonSpec[] spec = new ButtonSpec[] {
     178        ButtonSpec[] spec = {
    179179                new ButtonSpec(
    180180                        tr("Synchronize entire dataset"),
     
    235235     */
    236236    protected void handleUploadPreconditionFailedConflict(OsmApiException e, Pair<OsmPrimitive, Collection<OsmPrimitive>> conflict) {
    237         ButtonSpec[] options = new ButtonSpec[] {
     237        ButtonSpec[] options = {
    238238                new ButtonSpec(
    239239                        tr("Prepare conflict resolution"),
  • trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

    r14214 r15586  
    8484
    8585    protected MaxChangesetSizeExceededPolicy askMaxChangesetSizeExceedsPolicy() {
    86         ButtonSpec[] specs = new ButtonSpec[] {
     86        ButtonSpec[] specs = {
    8787                new ButtonSpec(
    8888                        tr("Continue uploading"),
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractCachedTileSourceLayer.java

    r13643 r15586  
    3939    private ICacheAccess<String, BufferedImageCacheEntry> cache;
    4040    private volatile TileLoaderFactory loaderFactory;
    41 
    4241
    4342    /**
     
    8988    }
    9089
    91 
    9290    /**
    9391     * Plugins that wish to set custom tile loader should call this method
  • trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java

    r15496 r15586  
    7272        Color cl = colorLayers.stream().filter(Objects::nonNull).map(Layer::getColor).filter(Objects::nonNull).findAny().orElse(Color.GRAY);
    7373        JColorChooser c = new JColorChooser(cl);
    74         Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};
     74        Object[] options = {tr("OK"), tr("Cancel"), tr("Default")};
    7575        int answer = JOptionPane.showOptionDialog(
    7676                MainApplication.getMainFrame(),
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java

    r15503 r15586  
    138138                .findAny().orElse(GpxDrawHelper.DEFAULT_COLOR_PROPERTY.get());
    139139        JColorChooser c = new JColorChooser(cl);
    140         Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};
     140        Object[] options = {tr("OK"), tr("Cancel"), tr("Default")};
    141141        int answer = JOptionPane.showOptionDialog(
    142142                MainApplication.getMainFrame(),
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java

    r15363 r15586  
    164164     */
    165165    public int showInDownloadDialog(String title, String helpTopic) {
    166         final ButtonSpec[] options = new ButtonSpec[] {
     166        final ButtonSpec[] options = {
    167167                new ButtonSpec(
    168168                        tr("Download"),
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r15496 r15586  
    180180    private static Color[] heatMapLutColorJosmRed2Blue = createColorFromResource("red2blue");
    181181
    182     private static Color[] rtkLibQualityColors = new Color[] {
     182    private static Color[] rtkLibQualityColors = {
    183183        Color.GREEN, // Fixed, solution by carrier‐based relative positioning and the integer ambiguity is properly resolved.
    184184        Color.ORANGE, // Float, solution by carrier‐based relative positioning but the integer ambiguity is not resolved.
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/SharpenImageProcessor.java

    r12782 r15586  
    2727    private ConvolveOp op;
    2828
    29     private static final float[] KERNEL_IDENTITY = new float[] {
     29    private static final float[] KERNEL_IDENTITY = {
    3030        0, 0, 0,
    3131        0, 1, 0,
     
    3333    };
    3434
    35     private static final float[] KERNEL_BLUR = new float[] {
     35    private static final float[] KERNEL_BLUR = {
    3636        1f / 16, 2f / 16, 1f / 16,
    3737        2f / 16, 4f / 16, 2f / 16,
     
    3939    };
    4040
    41     private static final float[] KERNEL_SHARPEN = new float[] {
     41    private static final float[] KERNEL_SHARPEN = {
    4242        -.5f, -1f, -.5f,
    4343         -1f, 7, -1f,
  • trunk/src/org/openstreetmap/josm/gui/layer/validation/PaintVisitor.java

    r14837 r15586  
    153153        if (selected) {
    154154            g.setColor(getHighlightColor(color));
    155             int[] x = new int[] {(int) (p1.x + cosT), (int) (p2.x + cosT),
    156                                  (int) (p2.x - cosT), (int) (p1.x - cosT)};
    157             int[] y = new int[] {(int) (p1.y - sinT), (int) (p2.y - sinT),
    158                                  (int) (p2.y + sinT), (int) (p1.y + sinT)};
     155            int[] x = {(int) (p1.x + cosT), (int) (p2.x + cosT),
     156                       (int) (p2.x - cosT), (int) (p1.x - cosT)};
     157            int[] y = {(int) (p1.y - sinT), (int) (p2.y - sinT),
     158                       (int) (p2.y + sinT), (int) (p1.y + sinT)};
    159159            g.fillPolygon(x, y, 4);
    160160            g.fillArc(p1.x - 5, p1.y - 5, 10, 10, deg, 180);
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/CompletelyInsideAreaStrategy.java

    r12490 r15586  
    7272        // |  8  3  7  |
    7373        // +-----------+
    74         Rectangle[] candidates = new Rectangle[] {
     74        Rectangle[] candidates = {
    7575                new Rectangle(x2, y1, nbw, nbh),
    7676                new Rectangle(x3, y2, nbw, nbh),
  • trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java

    r13842 r15586  
    161161
    162162    protected boolean confirmOverwriteCustomSettings() {
    163         ButtonSpec[] buttons = new ButtonSpec[] {
     163        ButtonSpec[] buttons = {
    164164                new ButtonSpec(
    165165                        tr("Continue"),
  • trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    r14690 r15586  
    736736        private class ActionTransferable implements Transferable {
    737737
    738             private final DataFlavor[] flavors = new DataFlavor[] {ACTION_FLAVOR};
     738            private final DataFlavor[] flavors = {ACTION_FLAVOR};
    739739
    740740            private final List<ActionDefinition> actions;
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java

    r15497 r15586  
    4949
    5050    private static final int WAYPOINT_LABEL_CUSTOM = 6;
    51     private static final String[] LABEL_PATTERN_TEMPLATE = new String[] {Marker.LABEL_PATTERN_AUTO, Marker.LABEL_PATTERN_NAME,
     51    private static final String[] LABEL_PATTERN_TEMPLATE = {Marker.LABEL_PATTERN_AUTO, Marker.LABEL_PATTERN_NAME,
    5252        Marker.LABEL_PATTERN_DESC, "{special:everything}", "?{ '{name}' | '{desc}' | '{formattedWaypointOffset}' }", " "};
    53     private static final String[] LABEL_PATTERN_DESC = new String[] {tr("Auto"), /* gpx data field name */ trc("gpx_field", "Name"),
     53    private static final String[] LABEL_PATTERN_DESC = {tr("Auto"), /* gpx data field name */ trc("gpx_field", "Name"),
    5454        /* gpx data field name */ trc("gpx_field", "Desc(ription)"), tr("Everything"), tr("Name or offset"), tr("None"), tr("Custom")};
    55 
    5655
    5756    private final JRadioButton drawRawGpsLinesGlobal = new JRadioButton(tr("Use global settings"));
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CommonSettingsPanel.java

    r14632 r15586  
    2525    private final JosmComboBox<String> sharpen;
    2626    private final JSlider tilesZoom = new JSlider(-2, 2, 0);
    27 
    2827
    2928    /**
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/HeadersTable.java

    r13828 r15586  
    7272
    7373            } else if (row == headers.size()) {
    74                 String[] entry = new String[] {"", ""};
     74                String[] entry = {"", ""};
    7575                entry[col] = (String) value;
    7676                headers.add(entry);
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/TMSSettingsPanel.java

    r15456 r15586  
    3333    private final JSpinner maxConcurrentDownloads;
    3434    private final JSpinner maxDownloadsPerHost;
    35 
    3635
    3736    /**
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java

    r15508 r15586  
    268268
    269269    private void configureSites() {
    270         ButtonSpec[] options = new ButtonSpec[] {
     270        ButtonSpec[] options = {
    271271                new ButtonSpec(
    272272                        tr("OK"),
  • trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java

    r15116 r15586  
    123123
    124124    private static class ScListModel extends AbstractTableModel {
    125         private final String[] columnNames = new String[]{tr("Action"), tr("Shortcut")};
     125        private final String[] columnNames = {tr("Action"), tr("Shortcut")};
    126126        private final transient List<Shortcut> data;
    127127
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r15054 r15586  
    7474
    7575    /* Localization keys for file chooser (and color chooser). */
    76     private static final String[] JAVA_INTERNAL_MESSAGE_KEYS = new String[] {
     76    private static final String[] JAVA_INTERNAL_MESSAGE_KEYS = {
    7777        /* JFileChooser windows laf */
    7878        "FileChooser.detailsViewActionLabelText",
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java

    r14153 r15586  
    188188                label.setText(message.replaceFirst("<div>", "<div style=\"width:" + maxWidth + "px;\">"));
    189189            }
    190             Object[] choices = new Object[] {tr("Yes, always"), tr("Yes, once"), tr("No")};
     190            Object[] choices = {tr("Yes, always"), tr("Yes, once"), tr("No")};
    191191            int choice = JOptionPane.showOptionDialog(MainApplication.getMainFrame(), label, tr("Confirm Remote Control action"),
    192192                    JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choices, choices[1]);
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r15508 r15586  
    487487        }
    488488
    489         ButtonSpec[] options = new ButtonSpec[] {
     489        ButtonSpec[] options = {
    490490                new ButtonSpec(
    491491                        tr("Update plugins"),
     
    564564          .append(Utils.joinAsHtmlUnorderedList(missingRequiredPlugin))
    565565          .append("</html>");
    566         ButtonSpec[] specs = new ButtonSpec[] {
     566        ButtonSpec[] specs = {
    567567                new ButtonSpec(
    568568                        tr("Download and restart"),
     
    12071207     */
    12081208    public static boolean confirmDisablePlugin(Component parent, String reason, String name) {
    1209         ButtonSpec[] options = new ButtonSpec[] {
     1209        ButtonSpec[] options = {
    12101210                new ButtonSpec(
    12111211                        tr("Disable plugin"),
     
    14201420
    14211421    private static int askUpdateDisableKeepPluginAfterException(PluginProxy plugin) {
    1422         final ButtonSpec[] options = new ButtonSpec[] {
     1422        final ButtonSpec[] options = {
    14231423                new ButtonSpec(
    14241424                        tr("Update plugin"),
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r15221 r15586  
    439439        Collection<String> locations = getPluginLocations();
    440440
    441         String[] nameCandidates = new String[] {
     441        String[] nameCandidates = {
    442442                pluginName,
    443443                pluginName + "-" + PlatformManager.getPlatform().getPlatform().name().toLowerCase(Locale.ENGLISH)};
  • trunk/src/org/openstreetmap/josm/tools/ColorScale.java

    r15292 r15586  
    6363        // CHECKSTYLE.OFF: SingleSpaceSeparator
    6464        //                   red  yellow  green   blue    red
    65         int[] h = new int[] {0,    59,     127,    244,   360};
    66         int[] s = new int[] {100,  84,     99,     100};
    67         int[] b = new int[] {90,   93,     74,     83};
     65        int[] h = {0,    59,     127,    244,   360};
     66        int[] s = {100,  84,     99,     100};
     67        int[] b = {90,   93,     74,     83};
    6868        // CHECKSTYLE.ON: SingleSpaceSeparator
    6969
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r15344 r15586  
    11461146    }
    11471147
    1148 
    11491148    /**
    11501149     * Data class to hold two double values (area and perimeter of a polygon).
  • trunk/test/unit/org/openstreetmap/josm/data/cache/HostLimitQueueTest.java

    r14261 r15586  
    3232    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3333    public JOSMTestRules test = new JOSMTestRules().preferences().timeout(20 * 1000);
    34 
    3534
    3635    /**
Note: See TracChangeset for help on using the changeset viewer.