Changeset 11747 in josm for trunk


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

checkstyle - NoWhiteSpaceBefore ...

Location:
trunk
Files:
45 edited

Legend:

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

    r11534 r11747  
    247247     * @param angles The angles
    248248     */
    249     public void saveAngles(String ... angles) {
     249    public void saveAngles(String... angles) {
    250250        Main.pref.putCollection(DRAW_ANGLESNAP_ANGLES, Arrays.asList(angles));
    251251    }
  • trunk/src/org/openstreetmap/josm/command/SequenceCommand.java

    r11733 r11747  
    117117    }
    118118
    119     protected final void setSequence(Command ... sequence) {
     119    protected final void setSequence(Command... sequence) {
    120120        this.sequence = Utils.copyArray(sequence);
    121121    }
  • trunk/src/org/openstreetmap/josm/data/Bounds.java

    r11587 r11747  
    186186     * @throws IllegalArgumentException if coords does not contain 4 double values
    187187     */
    188     public Bounds(double ... coords) {
     188    public Bounds(double... coords) {
    189189        this(coords, true);
    190190    }
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r11288 r11747  
    344344     * over all routes
    345345     */
    346     public Iterable<Collection<WayPoint>> getLinesIterable(final boolean ... trackVisibility) {
     346    public Iterable<Collection<WayPoint>> getLinesIterable(final boolean... trackVisibility) {
    347347        return () -> new LinesIterator(this, trackVisibility);
    348348    }
     
    397397         * included in the iteration. Can be null, then all tracks are included.
    398398         */
    399         public LinesIterator(GpxData data, boolean ... trackVisibility) {
     399        public LinesIterator(GpxData data, boolean... trackVisibility) {
    400400            itTracks = data.tracks.iterator();
    401401            idxTracks = -1;
  • trunk/src/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelper.java

    r11453 r11747  
    118118     * @throws XMLStreamException See {@link XMLStreamReader}
    119119     */
    120     public static boolean moveReaderToTag(XMLStreamReader reader, QName ... tags) throws XMLStreamException {
     120    public static boolean moveReaderToTag(XMLStreamReader reader, QName... tags) throws XMLStreamException {
    121121        QName stopTag = reader.getName();
    122122        int currentLevel = 0;
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r11608 r11747  
    731731     * @since 11587
    732732     */
    733     public boolean hasKey(String ... keys) {
     733    public boolean hasKey(String... keys) {
    734734        return keys != null && Arrays.stream(keys).anyMatch(this::hasKey);
    735735    }
  • trunk/src/org/openstreetmap/josm/data/osm/RelationMember.java

    r11553 r11747  
    5050     * @since 6305
    5151     */
    52     public boolean hasRole(String ... roles) {
     52    public boolean hasRole(String... roles) {
    5353        return Arrays.asList(roles).contains(role);
    5454    }
  • trunk/src/org/openstreetmap/josm/data/osm/TagMap.java

    r11553 r11747  
    5050         * @param tags The tags array. It is never changed but should also not be changed by you.
    5151         */
    52         TagEntryInterator(String ... tags) {
     52        TagEntryInterator(String... tags) {
    5353            super();
    5454            this.tags = tags;
     
    8989         * @param tags The tags array. It is never changed but should also not be changed by you.
    9090         */
    91         TagEntrySet(String ... tags) {
     91        TagEntrySet(String... tags) {
    9292            super();
    9393            this.tags = tags;
     
    142142     * @param tags The tags array. It is not modified by this map.
    143143     */
    144     public TagMap(String ... tags) {
     144    public TagMap(String... tags) {
    145145        if (tags == null || tags.length == 0) {
    146146            this.tags = EMPTY_TAGS;
  • trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java

    r10748 r11747  
    322322     * @return The corresponding latitude and longitude in degrees
    323323     */
    324     public LatLon cart2LatLon(double ... xyz) {
     324    public LatLon cart2LatLon(double... xyz) {
    325325        return cart2LatLon(xyz, 1e-11);
    326326    }
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java

    r10680 r11747  
    167167     * @return an array of top level Sub Grids with lower level Sub Grids set.
    168168     */
    169     private static NTV2SubGrid[] createSubGridTree(NTV2SubGrid ... subGrid) {
     169    private static NTV2SubGrid[] createSubGridTree(NTV2SubGrid... subGrid) {
    170170        int topLevelCount = 0;
    171171        Map<String, List<NTV2SubGrid>> subGridMap = new HashMap<>();
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java

    r11553 r11747  
    281281     * @param subGrid subgrids
    282282     */
    283     public void setSubGridArray(NTV2SubGrid ... subGrid) {
     283    public void setSubGridArray(NTV2SubGrid... subGrid) {
    284284        this.subGrid = Utils.copyArray(subGrid);
    285285    }
  • trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java

    r11586 r11747  
    19251925     * @since 1.5.0
    19261926     */
    1927     public static synchronized void updateTLDOverride(ArrayType table, String ... tlds) {
     1927    public static synchronized void updateTLDOverride(ArrayType table, String... tlds) {
    19281928        if (inUse) {
    19291929            throw new IllegalStateException("Can only invoke this method before calling getInstance");
  • trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java

    r10680 r11747  
    102102     * validate against
    103103     */
    104     public RegexValidator(String ... regexs) {
     104    public RegexValidator(String... regexs) {
    105105        this(regexs, true);
    106106    }
  • trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java

    r11452 r11747  
    218218     *        ignore the contents of schemes.
    219219     */
    220     public UrlValidator(String ... schemes) {
     220    public UrlValidator(String... schemes) {
    221221        this(schemes, 0L);
    222222    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java

    r11129 r11747  
    7878    }
    7979
    80     private static boolean isKeyValid3Parts(String ... parts) {
     80    private static boolean isKeyValid3Parts(String... parts) {
    8181        return parts.length == 3 && isRestrictionType(parts[0]) && isTransportationMode(parts[1]) && isDirection(parts[2]);
    8282    }
    8383
    84     private static boolean isKeyValid2Parts(String ... parts) {
     84    private static boolean isKeyValid2Parts(String... parts) {
    8585        return parts.length == 2 && ((isRestrictionType(parts[0]) && (isTransportationMode(parts[1]) || isDirection(parts[1])))
    8686                                  || (isTransportationMode(parts[0]) && isDirection(parts[1])));
    8787    }
    8888
    89     private static boolean isKeyValid1Part(String ... parts) {
     89    private static boolean isKeyValid1Part(String... parts) {
    9090        return parts.length == 1 && (isRestrictionType(parts[0]) || isTransportationMode(parts[0]));
    9191    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r11129 r11747  
    253253        private final String replacement;
    254254
    255         public SynonymRule(String replacement, String ... words) {
     255        public SynonymRule(String replacement, String... words) {
    256256            this.replacement = replacement.toLowerCase(Locale.ENGLISH);
    257257            this.words = words;
  • 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    }
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r11587 r11747  
    274274    }
    275275
    276     static boolean isImageFormatSupported(String format, String ... mimeFormats) {
     276    static boolean isImageFormatSupported(String format, String... mimeFormats) {
    277277        for (String mime : mimeFormats) {
    278278            if (format.startsWith("image/" + mime)) {
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r11649 r11747  
    17951795    }
    17961796
    1797     private static Color parseRGB(String ... s) {
     1797    private static Color parseRGB(String... s) {
    17981798        int[] rgb = new int[3];
    17991799        try {
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r11642 r11747  
    116116     * @since 7314
    117117     */
    118     public static String getPackageDetails(String ... packageNames) {
     118    public static String getPackageDetails(String... packageNames) {
    119119        try {
    120120            // CHECKSTYLE.OFF: SingleSpaceSeparator
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r11740 r11747  
    349349     * @since 7436
    350350     */
    351     public static int[] copyArray(int ... array) {
     351    public static int[] copyArray(int... array) {
    352352        if (array != null) {
    353353            return Arrays.copyOf(array, array.length);
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DuplicateNodeTest.java

    r11007 r11747  
    3131    private static final DuplicateNode TEST = new DuplicateNode();
    3232
    33     private static void doTest(int code, Tag ... tags) {
     33    private static void doTest(int code, Tag... tags) {
    3434        performTest(code, buildDataSet(tags), true);
    3535    }
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/ValidatorTestUtils.java

    r10991 r11747  
    3434    static <T extends OsmPrimitive> void testSampleFile(String sampleFile,
    3535            Function<DataSet, Iterable<T>> provider, Predicate<String> namePredicate,
    36             Test ... tests) throws Exception {
     36            Test... tests) throws Exception {
    3737        try (InputStream is = new FileInputStream(sampleFile)) {
    3838            for (T t: provider.apply(OsmReader.parseDataSet(is, null))) {
  • trunk/tools/checkstyle/josm_checks.xml

    r11683 r11747  
    6363    <module name="EmptyForIteratorPad"/>
    6464    <module name="NoWhitespaceAfter"/>
    65     <module name="NoWhitespaceBefore">
    66         <property name="tokens" value="COMMA, SEMI, POST_INC, POST_DEC"/>
    67     </module>
     65    <module name="NoWhitespaceBefore"/>
    6866    <module name="SingleSpaceSeparator"/>
    6967    <module name="MethodParamPad"/>
Note: See TracChangeset for help on using the changeset viewer.