Changeset 13202 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-12-16T21:06:42+01:00 (2 years ago)
Author:
Don-vip
Message:

update to PMD 6.0.0

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r12809 r13202  
    152152        // if latest version from history is higher than a non existing primitive version,
    153153        // that means this version has been redacted and the primitive cannot be used.
    154         if (history.getLatest().getVersion() > primitive.getVersion())
    155             return false;
     154        return history.getLatest().getVersion() <= primitive.getVersion();
    156155
    157156        // latest has a higher version than one of the primitives
    158157        // in the history (probably because the history got out of sync
    159158        // with uploaded data) -> show the primitive as latest
    160         return true;
    161159    }
    162160
  • trunk/src/org/openstreetmap/josm/tools/HiDPISupport.java

    r12868 r13202  
    187187     */
    188188    public static Image processMRImages(List<Image> imgs, Function<List<Image>, Image> processor) {
    189         CheckParameterUtil.ensureThat(imgs.size() >= 1, "at least on element expected");
     189        CheckParameterUtil.ensureThat(!imgs.isEmpty(), "at least one element expected");
    190190        if (!getBaseMultiResolutionImageClass().isPresent()) {
    191191            return processor.apply(imgs);
Note: See TracChangeset for help on using the changeset viewer.