Changeset 8735 in josm


Ignore:
Timestamp:
2015-09-08T15:55:48+02:00 (5 years ago)
Author:
simon04
Message:

fix #11839 - AbstractPrimitive: getKeys() is accessing this.keys multiple times (patch by michael2402)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r8709 r8735  
    480480    @Override
    481481    public Map<String, String> getKeys() {
     482        String[] keys = this.keys;
    482483        final Map<String, String> result = new HashMap<>(
    483                 Utils.hashMapInitialCapacity(this.keys == null ? 0 : this.keys.length / 2));
    484         String[] keys = this.keys;
     484                Utils.hashMapInitialCapacity(keys == null ? 0 : keys.length / 2));
    485485        if (keys != null) {
    486486            for (int i = 0; i < keys.length; i += 2) {
Note: See TracChangeset for help on using the changeset viewer.