Changeset 19181 in josm for trunk


Ignore:
Timestamp:
2024-08-12T18:00:21+02:00 (3 months ago)
Author:
stoecker
Message:

PMD fixes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r19113 r19181  
    2020import java.util.Collections;
    2121import java.util.EnumSet;
    22 import java.util.HashSet;
    2322import java.util.LinkedHashMap;
    2423import java.util.List;
     
    616615
    617616            static Set<TagInfoTag.Type> forPresetTypes(Set<TaggingPresetType> types) {
    618                 return types == null ? new HashSet<>() : types.stream()
     617                return types == null ? new EnumSet<>() : types.stream()
    619618                        .map(Type::forPresetType)
    620619                        .collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/TileZXY.java

    r19176 r19181  
    4141     * @return The x coordinate for this tile
    4242     */
     43    @SuppressWarnings("PMD.ShortMethodName")
    4344    public int x() {
    4445        return this.x;
     
    4950     * @return The y coordinate for this tile
    5051     */
     52    @SuppressWarnings("PMD.ShortMethodName")
    5153    public int y() {
    5254        return this.y;
Note: See TracChangeset for help on using the changeset viewer.