Ignore:
Timestamp:
2018-05-26T19:36:19+02:00 (17 months ago)
Author:
Don-vip
Message:

SonarQube - fix minor code issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginClassLoader.java

    r13581 r13849  
    4747        // Add dependency only if not already present (directly or transitively through another one)
    4848        boolean result = !dependencies.contains(Objects.requireNonNull(dependency, "dependency"))
    49                 && !dependencies.stream().anyMatch(pcl -> pcl.dependencies.contains(dependency))
     49                && dependencies.stream().noneMatch(pcl -> pcl.dependencies.contains(dependency))
    5050                && dependencies.add(dependency);
    5151        if (result) {
Note: See TracChangeset for help on using the changeset viewer.