Changeset 17372 in josm


Ignore:
Timestamp:
2020-11-28T15:20:26+01:00 (7 weeks ago)
Author:
Don-vip
Message:

fix deprecation warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/TestUtils.java

    r17332 r17372  
    592592     */
    593593    public static <T> Set<Class<? extends T>> getJosmSubtypes(Class<T> superClass) {
    594         try (ScanResult scan = new ClassGraph().whitelistPackages("org.openstreetmap.josm").ignoreClassVisibility().scan()) {
     594        try (ScanResult scan = new ClassGraph().acceptPackages("org.openstreetmap.josm").ignoreClassVisibility().scan()) {
    595595            Function<String, ClassInfoList> lambda = superClass.isInterface() ? scan::getClassesImplementing : scan::getSubclasses;
    596596            return lambda.apply(superClass.getName())
Note: See TracChangeset for help on using the changeset viewer.