Ignore:
Timestamp:
2017-03-19T15:55:27+01:00 (7 years ago)
Author:
Don-vip
Message:

checkstyle - NoWhiteSpaceBefore ...

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java

    r11105 r11747  
    131131     * @param buttonTexts  String Array of the text that will appear on the buttons. The first button is the default one.
    132132     */
    133     public ExtendedDialog(Component parent, String title, String ... buttonTexts) {
     133    public ExtendedDialog(Component parent, String title, String... buttonTexts) {
    134134        this(parent, title, buttonTexts, true, true);
    135135    }
     
    178178     * @return {@code this}
    179179     */
    180     public ExtendedDialog setButtonIcons(Icon ... buttonIcons) {
     180    public ExtendedDialog setButtonIcons(Icon... buttonIcons) {
    181181        this.bIcons = Utils.copyArray(buttonIcons);
    182182        return this;
     
    188188     * @return {@code this}
    189189     */
    190     public ExtendedDialog setButtonIcons(String ... buttonIcons) {
     190    public ExtendedDialog setButtonIcons(String... buttonIcons) {
    191191        bIcons = new Icon[buttonIcons.length];
    192192        for (int i = 0; i < buttonIcons.length; ++i) {
     
    203203     * @return {@code this}
    204204     */
    205     public ExtendedDialog setToolTipTexts(String ... toolTipTexts) {
     205    public ExtendedDialog setToolTipTexts(String... toolTipTexts) {
    206206        this.bToolTipTexts = Utils.copyArray(toolTipTexts);
    207207        return this;
  • trunk/src/org/openstreetmap/josm/gui/ProgramArguments.java

    r10936 r11747  
    103103     * @since 10936
    104104     */
    105     public ProgramArguments(String ... args) {
     105    public ProgramArguments(String... args) {
    106106        Stream.of(Option.values()).forEach(o -> argMap.put(o, new ArrayList<>()));
    107107        buildCommandLineArgumentMap(args);
     
    112112     * @param args command-line arguments array
    113113     */
    114     private void buildCommandLineArgumentMap(String ... args) {
     114    private void buildCommandLineArgumentMap(String... args) {
    115115        LongOpt[] los = Stream.of(Option.values()).map(Option::toLongOpt).toArray(i -> new LongOpt[i]);
    116116
     
    215215    }
    216216
    217     private static String getValue(String ... kv) {
     217    private static String getValue(String... kv) {
    218218        if (kv.length < 2) {
    219219            return "";
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/AbstractListMergeModel.java

    r11365 r11747  
    274274    }
    275275
    276     protected void copyToTop(ListRole role, int ... rows) {
     276    protected void copyToTop(ListRole role, int... rows) {
    277277        copy(role, rows, 0);
    278278        mergedEntriesSelectionModel.setSelectionInterval(0, rows.length -1);
     
    286286     * @param rows the indices
    287287     */
    288     public void copyMyToTop(int ... rows) {
     288    public void copyMyToTop(int... rows) {
    289289        copyToTop(MY_ENTRIES, rows);
    290290    }
     
    297297     * @param rows the indices
    298298     */
    299     public void copyTheirToTop(int ... rows) {
     299    public void copyTheirToTop(int... rows) {
    300300        copyToTop(THEIR_ENTRIES, rows);
    301301    }
     
    310310     */
    311311
    312     public void copyToEnd(ListRole source, int ... rows) {
     312    public void copyToEnd(ListRole source, int... rows) {
    313313        copy(source, rows, getMergedEntriesSize());
    314314        mergedEntriesSelectionModel.setSelectionInterval(getMergedEntriesSize()-rows.length, getMergedEntriesSize() -1);
     
    323323     * @param rows the indices
    324324     */
    325     public void copyMyToEnd(int ... rows) {
     325    public void copyMyToEnd(int... rows) {
    326326        copyToEnd(MY_ENTRIES, rows);
    327327    }
     
    334334     * @param rows the indices
    335335     */
    336     public void copyTheirToEnd(int ... rows) {
     336    public void copyTheirToEnd(int... rows) {
    337337        copyToEnd(THEIR_ENTRIES, rows);
    338338    }
     
    492492     *
    493493     */
    494     public void moveUpMerged(int ... rows) {
     494    public void moveUpMerged(int... rows) {
    495495        if (rows == null || rows.length == 0)
    496496            return;
     
    519519     * @param rows the indices
    520520     */
    521     public void moveDownMerged(int ... rows) {
     521    public void moveDownMerged(int... rows) {
    522522        if (rows == null || rows.length == 0)
    523523            return;
     
    547547     * @param rows the indices
    548548     */
    549     public void removeMerged(int ... rows) {
     549    public void removeMerged(int... rows) {
    550550        if (rows == null || rows.length == 0)
    551551            return;
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ComparePairType.java

    r11489 r11747  
    3333    private final ListRole[] participatingRoles;
    3434
    35     ComparePairType(String displayName, ListRole ... participatingRoles) {
     35    ComparePairType(String displayName, ListRole... participatingRoles) {
    3636        this.displayName = displayName;
    3737        this.participatingRoles = Utils.copyArray(participatingRoles);
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java

    r11381 r11747  
    238238    }
    239239
    240     private void selectNextConflict(int ... rows) {
     240    private void selectNextConflict(int... rows) {
    241241        int max = rows[0];
    242242        for (int row: rows) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r11535 r11747  
    548548
    549549    class ChangesetDialogPopup extends ListPopupMenu {
    550         ChangesetDialogPopup(JList<?> ... lists) {
     550        ChangesetDialogPopup(JList<?>... lists) {
    551551            super(lists);
    552552            add(selectObjectsAction);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java

    r11105 r11747  
    5252    protected final transient GroupLayout layout = new GroupLayout(panel);
    5353
    54     public OsmIdSelectionDialog(Component parent, String title, String ... buttonTexts) {
     54    public OsmIdSelectionDialog(Component parent, String title, String... buttonTexts) {
    5555        super(parent, title, buttonTexts);
    5656    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java

    r11381 r11747  
    342342        }
    343343
    344         public void selectPrimitivesOwnedBy(int ... rows) {
     344        public void selectPrimitivesOwnedBy(int... rows) {
    345345            Set<User> users = new HashSet<>();
    346346            for (int index: rows) {
     
    357357        }
    358358
    359         public List<User> getSelectedUsers(int ... rows) {
     359        public List<User> getSelectedUsers(int... rows) {
    360360            List<User> ret = new LinkedList<>();
    361361            if (rows == null || rows.length == 0)
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r11553 r11747  
    967967        }
    968968
    969         protected void deleteTags(int ... rows) {
     969        protected void deleteTags(int... rows) {
    970970            // convert list of rows to HashMap (and find gap for nextKey)
    971971            Map<String, String> tags = new HashMap<>(rows.length);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r11675 r11747  
    545545        protected AutoCompletingComboBox values;
    546546
    547         AbstractTagsDialog(Component parent, String title, String ... buttonTexts) {
     547        AbstractTagsDialog(Component parent, String title, String... buttonTexts) {
    548548            super(parent, title, buttonTexts);
    549549            addMouseListener(new PopupMenuLauncher(popupMenu));
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r11746 r11747  
    257257    }
    258258
    259     public void moveUp(int ... selectedRows) {
     259    public void moveUp(int... selectedRows) {
    260260        if (!canMoveUp(selectedRows))
    261261            return;
     
    280280    }
    281281
    282     public void moveDown(int ... selectedRows) {
     282    public void moveDown(int... selectedRows) {
    283283        if (!canMoveDown(selectedRows))
    284284            return;
     
    305305    }
    306306
    307     public void remove(int ... selectedRows) {
     307    public void remove(int... selectedRows) {
    308308        if (!canRemove(selectedRows))
    309309            return;
     
    319319    }
    320320
    321     public boolean canMoveUp(int ... rows) {
     321    public boolean canMoveUp(int... rows) {
    322322        if (rows == null || rows.length == 0)
    323323            return false;
     
    326326    }
    327327
    328     public boolean canMoveDown(int ... rows) {
     328    public boolean canMoveDown(int... rows) {
    329329        if (rows == null || rows.length == 0)
    330330            return false;
     
    333333    }
    334334
    335     public boolean canRemove(int ... rows) {
     335    public boolean canRemove(int... rows) {
    336336        if (rows == null || rows.length == 0)
    337337            return false;
  • trunk/src/org/openstreetmap/josm/gui/history/TwoColumnDiff.java

    r10748 r11747  
    6464    boolean referenceReversed;
    6565
    66     TwoColumnDiff(Object[] reference, Object ... current) {
     66    TwoColumnDiff(Object[] reference, Object... current) {
    6767        this.reference = Utils.copyArray(reference);
    6868        this.current = Utils.copyArray(current);
  • trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java

    r11377 r11747  
    239239        }
    240240
    241         public List<OsmPrimitive> getPrimitives(int ... indices) {
     241        public List<OsmPrimitive> getPrimitives(int... indices) {
    242242            if (indices == null || indices.length == 0)
    243243                return Collections.emptyList();
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r11710 r11747  
    756756    }
    757757
    758     private static void addIntegerIfPresent(WayPoint wpt, OsmPrimitive p, String gpxKey, String ... osmKeys) {
     758    private static void addIntegerIfPresent(WayPoint wpt, OsmPrimitive p, String gpxKey, String... osmKeys) {
    759759        List<String> possibleKeys = new ArrayList<>(Arrays.asList(osmKeys));
    760760        possibleKeys.add(0, gpxKey);
     
    777777    }
    778778
    779     private static void addDoubleIfPresent(WayPoint wpt, OsmPrimitive p, String gpxKey, String ... osmKeys) {
     779    private static void addDoubleIfPresent(WayPoint wpt, OsmPrimitive p, String gpxKey, String... osmKeys) {
    780780        List<String> possibleKeys = new ArrayList<>(Arrays.asList(osmKeys));
    781781        possibleKeys.add(0, gpxKey);
     
    797797    }
    798798
    799     private static void addStringIfPresent(WayPoint wpt, OsmPrimitive p, String gpxKey, String ... osmKeys) {
     799    private static void addStringIfPresent(WayPoint wpt, OsmPrimitive p, String gpxKey, String... osmKeys) {
    800800        List<String> possibleKeys = new ArrayList<>(Arrays.asList(osmKeys));
    801801        possibleKeys.add(0, gpxKey);
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportImagesAction.java

    r10680 r11747  
    4141    }
    4242
    43     private static void addRecursiveFiles(List<File> files, File ... sel) {
     43    private static void addRecursiveFiles(List<File> files, File... sel) {
    4444        if (sel == null) { // listFiles might return null
    4545            return;
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/NodeElement.java

    r11726 r11747  
    143143     * @return The icon or <code>null</code> if no icon is defined
    144144     */
    145     public static MapImage createIcon(final Environment env, final String ... keys) {
     145    public static MapImage createIcon(final Environment env, final String... keys) {
    146146        CheckParameterUtil.ensureParameterNotNull(env, "env");
    147147        CheckParameterUtil.ensureParameterNotNull(keys, "keys");
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r10680 r11747  
    272272     * @param tagIndices a list of tag indices
    273273     */
    274     public void deleteTagNames(int ... tagIndices) {
     274    public void deleteTagNames(int... tagIndices) {
    275275        if (tags == null)
    276276            return;
     
    291291     * @param tagIndices the lit of tag indices
    292292     */
    293     public void deleteTagValues(int ... tagIndices) {
     293    public void deleteTagValues(int... tagIndices) {
    294294        if (tags == null)
    295295            return;
     
    334334     * @param tagIndices the list of tag indices
    335335     */
    336     public void deleteTags(int ... tagIndices) {
     336    public void deleteTags(int... tagIndices) {
    337337        if (tags == null)
    338338            return;
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagTableColumnModelBuilder.java

    r9847 r11747  
    2626     * @see TableColumn#setCellRenderer
    2727     */
    28     public TagTableColumnModelBuilder(TableCellRenderer renderer, String ... headerValues) {
     28    public TagTableColumnModelBuilder(TableCellRenderer renderer, String... headerValues) {
    2929        CheckParameterUtil.ensureParameterNotNull(headerValues, "headerValues");
    3030        for (int i = 0; i < headerValues.length; i++) {
     
    4444     * @see TableColumn#setWidth
    4545     */
    46     public TagTableColumnModelBuilder setWidth(int width, int ... indexes) {
     46    public TagTableColumnModelBuilder setWidth(int width, int... indexes) {
    4747        for (int i : indexes) {
    4848            model.getColumn(i).setWidth(width);
     
    5858     * @see TableColumn#setPreferredWidth
    5959     */
    60     public TagTableColumnModelBuilder setPreferredWidth(int width, int ... indexes) {
     60    public TagTableColumnModelBuilder setPreferredWidth(int width, int... indexes) {
    6161        for (int i : indexes) {
    6262            model.getColumn(i).setPreferredWidth(width);
     
    7272     * @see TableColumn#setMaxWidth
    7373     */
    74     public TagTableColumnModelBuilder setMaxWidth(int width, int ... indexes) {
     74    public TagTableColumnModelBuilder setMaxWidth(int width, int... indexes) {
    7575        for (int i : indexes) {
    7676            model.getColumn(i).setMaxWidth(width);
     
    8686     * @see TableColumn#setCellEditor
    8787     */
    88     public TagTableColumnModelBuilder setCellEditor(TableCellEditor editor, int ... indexes) {
     88    public TagTableColumnModelBuilder setCellEditor(TableCellEditor editor, int... indexes) {
    8989        for (int i : indexes) {
    9090            model.getColumn(i).setCellEditor(editor);
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelector.java

    r11417 r11747  
    125125        }
    126126
    127         private static int isMatching(Collection<String> values, String ... searchString) {
     127        private static int isMatching(Collection<String> values, String... searchString) {
    128128            int sum = 0;
    129129            for (String word: searchString) {
     
    149149        }
    150150
    151         int isMatchingGroup(String ... words) {
     151        int isMatchingGroup(String... words) {
    152152            return isMatching(groups, words);
    153153        }
    154154
    155         int isMatchingName(String ... words) {
     155        int isMatchingName(String... words) {
    156156            return isMatching(names, words);
    157157        }
    158158
    159         int isMatchingTags(String ... words) {
     159        int isMatchingTags(String... words) {
    160160            return isMatching(tags, words);
    161161        }
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r11553 r11747  
    158158        private final String delimiter;
    159159
    160         protected ConcatenatingJList(String del, PresetListEntry ... o) {
     160        protected ConcatenatingJList(String del, PresetListEntry... o) {
    161161            super(o);
    162162            delimiter = del;
  • trunk/src/org/openstreetmap/josm/gui/widgets/ListPopupMenu.java

    r9078 r11747  
    1616    private final JList<?>[] lists;
    1717
    18     public ListPopupMenu(JList<?> ... lists) {
     18    public ListPopupMenu(JList<?>... lists) {
    1919        this.lists = lists;
    2020    }
  • trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java

    r10763 r11747  
    5353     * @param allowed The allowed states
    5454     */
    55     public QuadStateCheckBox(String text, Icon icon, State initial, State ... allowed) {
     55    public QuadStateCheckBox(String text, Icon icon, State initial, State... allowed) {
    5656        super(text, icon);
    5757        this.allowed = Utils.copyArray(allowed);
     
    8686     * @param allowed The allowed states
    8787     */
    88     public QuadStateCheckBox(String text, State initial, State ... allowed) {
     88    public QuadStateCheckBox(String text, State initial, State... allowed) {
    8989        this(text, null, initial, allowed);
    9090    }
Note: See TracChangeset for help on using the changeset viewer.