Ignore:
Timestamp:
2017-02-12T16:32:18+01:00 (7 years ago)
Author:
Don-vip
Message:

refactor handling of null values - use Java 8 Optional where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r11452 r11553  
    12611261     */
    12621262    protected static <T> Collection<T> asColl(T o) {
    1263         if (o == null)
    1264             return Collections.emptySet();
    1265         return Collections.singleton(o);
     1263        return o == null ? Collections.emptySet() : Collections.singleton(o);
    12661264    }
    12671265}
Note: See TracChangeset for help on using the changeset viewer.