Ignore:
Timestamp:
2015-10-10T14:30:12+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S1643 - Strings should not be concatenated using '+' in a loop
sonar - squid:S1640 - Maps with keys that are enum values should be replaced with EnumMap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java

    r8840 r8849  
    363363    private static final class StatisticsInfo {
    364364        public int numTags;
    365         public Map<OsmPrimitiveType, Integer> sourceInfo;
    366         public Map<OsmPrimitiveType, Integer> targetInfo;
     365        public final Map<OsmPrimitiveType, Integer> sourceInfo;
     366        public final Map<OsmPrimitiveType, Integer> targetInfo;
    367367
    368368        private StatisticsInfo() {
    369             sourceInfo = new HashMap<>();
    370             targetInfo = new HashMap<>();
     369            sourceInfo = new EnumMap<>(OsmPrimitiveType.class);
     370            targetInfo = new EnumMap<>(OsmPrimitiveType.class);
    371371        }
    372372    }
Note: See TracChangeset for help on using the changeset viewer.