Changeset 17825 in josm for trunk/src/org


Ignore:
Timestamp:
2021-04-26T19:31:07+02:00 (4 years ago)
Author:
simon04
Message:

see #20467 - Checkstyle

File:
1 edited

Legend:

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

    r17812 r17825  
    4949
    5050    private static final List<NameFormatterHook> formatHooks = new LinkedList<>();
     51
     52    private static final List<String> HIGHWAY_RAILWAY_WATERWAY_LANDUSE_BUILDING = Arrays.asList(
     53            marktr("highway"), marktr("railway"), marktr("waterway"), marktr("landuse"), marktr("building"));
    5154
    5255    /**
     
    236239                }
    237240                if (n == null) {
    238                     for (String key : Arrays.asList(marktr("highway"), marktr("railway"), marktr("waterway"), marktr("landuse"), marktr("building"))) {
     241                    for (String key : HIGHWAY_RAILWAY_WATERWAY_LANDUSE_BUILDING) {
    239242                        if (way.hasKey(key) && !way.isKeyFalse(key)) {
    240243                            /* I18N: first is highway, railway, waterway, landuse or building type, second is the type itself */
Note: See TracChangeset for help on using the changeset viewer.