Changeset 16040 in josm for trunk/src/org


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

see #18864 - ComboMultiSelect: remove/inline zipIcons field

Reduces retained size of TaggingPreset from 1_841_336 to 1_630_536

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r16035 r16040  
    88import java.awt.Dimension;
    99import java.awt.Font;
    10 import java.io.File;
    1110import java.lang.reflect.Method;
    1211import java.lang.reflect.Modifier;
     
    224223        /** The localized version of {@link #short_description}. */
    225224        public String locale_short_description; // NOSONAR
    226         private final File zipIcons = TaggingPresetReader.getZipIcons();
    227225
    228226        /** Cached width (currently only for Combo) to speed up preset dialog initialization */
     
    275273         */
    276274        public ImageIcon getIcon() {
    277             return icon == null ? null : loadImageIcon(icon, zipIcons, parseInteger(icon_size));
     275            return icon == null ? null : loadImageIcon(icon, TaggingPresetReader.getZipIcons(), parseInteger(icon_size));
    278276        }
    279277
Note: See TracChangeset for help on using the changeset viewer.