Ignore:
Timestamp:
2015-11-30T23:30:47+01:00 (9 years ago)
Author:
Don-vip
Message:

pmd - Ternary operator with a boolean literal can be simplified with a boolean expression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/MultiMap.java

    r8846 r9074  
    148148    public boolean contains(A key, B value) {
    149149        Set<B> values = get(key);
    150         return (values == null) ? false : values.contains(value);
     150        return values != null && values.contains(value);
    151151    }
    152152
Note: See TracChangeset for help on using the changeset viewer.