Ignore:
Timestamp:
2014-01-03T19:32:18+01:00 (10 years ago)
Author:
Don-vip
Message:

fix compilation warnings + minor code refactorization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r6611 r6615  
    471471            final String text = args[0];
    472472            System.arraycopy(args, 1, args, 0, args.length - 1);
    473             return org.openstreetmap.josm.tools.I18n.tr(text, args);
     473            return org.openstreetmap.josm.tools.I18n.tr(text, (Object[])args);
    474474        }
    475475
    476476        /**
    477477         * Returns the substring of {@code s} starting at index {@code begin} (inclusive, 0-indexed).
     478         * @param s The base string
     479         * @param begin The start index
     480         * @return the substring
    478481         * @see String#substring(int)
    479482         */
     
    485488         * Returns the substring of {@code s} starting at index {@code begin} (inclusive)
    486489         * and ending at index {@code end}, (exclusive, 0-indexed).
     490         * @param s The base string
     491         * @param begin The start index
     492         * @param end The end index
     493         * @return the substring
    487494         * @see String#substring(int, int)
    488495         */
Note: See TracChangeset for help on using the changeset viewer.