| 121 | } |
| 122 | |
| 123 | private static Map<String, Set<String>> doFindClasses(final URI uri, final String packageName, final List<String> defaultPackageNames) { |
| 124 | Map<String, Set<String>> result = ClassFinder.find(uri, packageName, true, false) |
| 125 | .entrySet().stream() |
| 126 | .filter(e -> e.getValue().stream().anyMatch(defaultPackageNames::contains)) |
| 127 | .collect( |
| 128 | Collectors.toMap( |
| 129 | Map.Entry::getKey, |
| 130 | entry -> entry.getValue().stream() |
| 131 | .filter(e -> defaultPackageNames.contains(e)) |
| 132 | .map(e -> e.replace('/', '.') + ".") |
| 133 | .collect(Collectors.toSet()) |
| 134 | ) |
| 135 | ); |
| 136 | return result; |
| 137 | } |
| 138 | |
| 139 | //-------------------------------------------------------------------------- |
| 140 | |