Ignore:
Timestamp:
2016-07-30T16:27:16+02:00 (5 years ago)
Author:
Don-vip
Message:

sonar - pmd:UseVarargs - Use Varargs

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r10600 r10680  
    567567         * @see #equivCount()
    568568         */
    569         private byte[] discardable(final int[] counts) {
     569        private byte[] discardable(final int ... counts) {
    570570            final int end = bufferedLines;
    571571            final byte[] discards = new byte[end];
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10627 r10680  
    18381838    }
    18391839
    1840     private static Color parseRGB(String[] s) {
     1840    private static Color parseRGB(String ... s) {
    18411841        int[] rgb = new int[3];
    18421842        try {
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r10657 r10680  
    405405     * @since 6222
    406406     */
    407     public static char[] copyArray(char[] array) {
     407    public static char[] copyArray(char ... array) {
    408408        if (array != null) {
    409409            return Arrays.copyOf(array, array.length);
     
    418418     * @since 7436
    419419     */
    420     public static int[] copyArray(int[] array) {
     420    public static int[] copyArray(int ... array) {
    421421        if (array != null) {
    422422            return Arrays.copyOf(array, array.length);
     
    928928    }
    929929
    930     private static String strip(final String str, final char[] skipChars) {
     930    private static String strip(final String str, final char ... skipChars) {
    931931
    932932        int start = 0;
  • trunk/src/org/openstreetmap/josm/tools/template_engine/CompoundTemplateEntry.java

    r9079 r10680  
    1313    }
    1414
    15     private CompoundTemplateEntry(TemplateEntry[] entries) {
     15    private CompoundTemplateEntry(TemplateEntry ... entries) {
    1616        this.entries = entries;
    1717    }
Note: See TracChangeset for help on using the changeset viewer.