- Timestamp:
- 2020-03-06T00:23:29+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging/presets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r15640 r16041 120 120 */ 121 121 public transient Set<TaggingPresetType> types; 122 public final transient List<TaggingPresetItem> data = new LinkedList<>();122 public final transient List<TaggingPresetItem> data = new ArrayList<>(2); 123 123 public transient Roles roles; 124 124 public transient TemplateEntry nameTemplate; … … 641 641 new ImageProvider("dialogs", "pin").getResource().attachImageIcon(this, true); 642 642 putValue(SHORT_DESCRIPTION, tr("Add or remove toolbar button")); 643 List<String> t = new LinkedList<>(ToolbarPreferences.getToolString());643 List<String> t = new ArrayList<>(ToolbarPreferences.getToolString()); 644 644 toolbarIndex = t.indexOf(getToolbarString()); 645 645 putValue(SELECTED_KEY, toolbarIndex >= 0); -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetNameTemplateList.java
r14273 r16041 2 2 package org.openstreetmap.josm.gui.tagging.presets; 3 3 4 import java.util.ArrayList; 4 5 import java.util.Collection; 5 6 import java.util.EnumSet; 6 import java.util.LinkedList;7 7 import java.util.List; 8 8 … … 17 17 private static TaggingPresetNameTemplateList instance; 18 18 19 private final List<TaggingPreset> presetsWithPattern = new LinkedList<>();19 private final List<TaggingPreset> presetsWithPattern = new ArrayList<>(); 20 20 21 21 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Roles.java
r13852 r16041 5 5 6 6 import java.awt.GridBagLayout; 7 import java.util.ArrayList; 7 8 import java.util.Collection; 8 import java.util.LinkedList;9 9 import java.util.List; 10 10 import java.util.Set; … … 158 158 * List of {@link Role} elements. 159 159 */ 160 public final List<Role> roles = new LinkedList<>();160 public final List<Role> roles = new ArrayList<>(2); 161 161 162 162 @Override
Note:
See TracChangeset
for help on using the changeset viewer.