Changeset 17372 in josm for trunk/test/unit
- Timestamp:
- 2020-11-28T15:20:26+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/TestUtils.java
r17332 r17372 592 592 */ 593 593 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()) { 595 595 Function<String, ClassInfoList> lambda = superClass.isInterface() ? scan::getClassesImplementing : scan::getSubclasses; 596 596 return lambda.apply(superClass.getName())
Note:
See TracChangeset
for help on using the changeset viewer.