Changeset 16299 in josm for trunk


Ignore:
Timestamp:
2020-04-14T08:34:08+02:00 (5 years ago)
Author:
GerdP
Message:

fix spotbugs: RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/ConnectivityRelations.java

    r16295 r16299  
    7373     */
    7474    public static Map<Integer, Map<Integer, Boolean>> parseConnectivityTag(Relation relation) {
    75         final String joined = relation.get(CONNECTIVITY_TAG).replace("bw", Integer.toString(BW));
    76 
    77         if (joined == null) {
     75        String cnTag = relation.get(CONNECTIVITY_TAG);
     76        if (cnTag == null) {
    7877            return Collections.emptyMap();
    7978        }
     79        final String joined = cnTag.replace("bw", Integer.toString(BW));
     80
    8081
    8182        final Map<Integer, Map<Integer, Boolean>> result = new HashMap<>();
Note: See TracChangeset for help on using the changeset viewer.