Changeset 17515 in josm


Ignore:
Timestamp:
2021-02-21T21:49:02+01:00 (2 weeks ago)
Author:
Don-vip
Message:

see #19724 - update to error-prone 2.5.1, checkstyle 8.36, spotbugs 4.2.1

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r17493 r17515  
    285285            <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
    286286            <compilerarg value="-XDignore.symbol.file"/>
    287             <compilerarg value="-Xplugin:ErrorProne -XepExcludedPaths:.*/parsergen/.* -Xep:ReferenceEquality:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:JdkObsolete:OFF -Xep:EqualsGetClass:OFF -Xep:UndefinedEquals:OFF -Xep:BadImport:OFF -Xep:AnnotateFormatMethod:OFF" unless:set="noErrorProne"/>
     287            <compilerarg value="-Xplugin:ErrorProne -XepExcludedPaths:.*/parsergen/.* -Xep:ReferenceEquality:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:JdkObsolete:OFF -Xep:EqualsGetClass:OFF -Xep:UndefinedEquals:OFF -Xep:BadImport:OFF -Xep:AnnotateFormatMethod:OFF -Xep:JavaUtilDate:OFF -Xep:DoNotCallSuggester:OFF -Xep:BanSerializableRead:OFF -Xep:RestrictedApiChecker:OFF" unless:set="noErrorProne"/>
    288288            <compilerarg line="-Xmaxwarns 1000"/>
    289289            <classpath>
  • trunk/src/org/openstreetmap/josm/data/osm/NodeGraph.java

    r16628 r17515  
    367367        TreeMap<Integer, Set<Node>> sortedMap = new TreeMap<>(Comparator.reverseOrder());
    368368        for (Entry<Node, Integer> e : counters.entrySet()) {
    369             sortedMap.computeIfAbsent(e.getValue(), LinkedHashSet::new).add(e.getKey());
     369            sortedMap.computeIfAbsent(e.getValue(), x -> new LinkedHashSet<>()).add(e.getKey());
    370370        }
    371371        LinkedHashSet<Node> result = new LinkedHashSet<>();
  • trunk/tools/ivy.xml

    r17302 r17515  
    1616        <dependency org="net.java.dev.javacc" name="javacc" rev="7.0.9" conf="javacc->default"/>
    1717        <!-- checkstyle->default -->
    18         <dependency org="com.puppycrawl.tools" name="checkstyle" rev="8.35" conf="checkstyle->default"/>
     18        <dependency org="com.puppycrawl.tools" name="checkstyle" rev="8.36" conf="checkstyle->default"/>
    1919        <!-- proguard->default -->
    2020        <dependency org="net.sf.proguard" name="proguard-anttask" rev="6.2.2" conf="proguard->default"/>
     
    2727        </dependency>
    2828        <!-- spotbugs->default -->
    29         <dependency org="com.github.spotbugs" name="spotbugs" rev="4.0.1" conf="spotbugs->default"/>
    30         <dependency org="com.github.spotbugs" name="spotbugs-ant" rev="4.0.1" conf="spotbugs->default"/>
     29        <dependency org="com.github.spotbugs" name="spotbugs" rev="4.2.1" conf="spotbugs->default"/>
     30        <dependency org="com.github.spotbugs" name="spotbugs-ant" rev="4.2.1" conf="spotbugs->default"/>
    3131        <!-- errorprone->default -->
    32         <dependency org="com.google.errorprone" name="error_prone_core" rev="2.4.0" conf="errorprone->default"/>
     32        <dependency org="com.google.errorprone" name="error_prone_core" rev="2.5.1" conf="errorprone->default"/>
    3333        <!-- errorprone->default -->
    3434        <dependency org="com.google.errorprone" name="javac" rev="9+181-r4173-1" conf="errorprone_javac->default"/>
Note: See TracChangeset for help on using the changeset viewer.