Changeset 16044 in josm for trunk/src/org


Ignore:
Timestamp:
2020-03-06T00:23:35+01:00 (5 years ago)
Author:
simon04
Message:

see #18864 - I18n.format: use not format when there are no objects

Reduces retained size of TaggingPreset from 1_750_272 to 1_667_448 (de).

File:
1 edited

Legend:

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

    r16029 r16044  
    157157
    158158    private static String format(String text, Object... objects) {
     159        if (objects.length == 0) {
     160            return text;
     161        }
    159162        try {
    160163            return MessageFormat.format(text, objects);
Note: See TracChangeset for help on using the changeset viewer.