Skip to content

Commit a547ba9

Browse files
committed
remove misleading auto-closeable
1 parent a073f8b commit a547ba9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main/java/it/aboutbits/springboot/toolbox/reflection/util/ClassScannerUtil.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static ClassScanner getScannerForPackages(String... packages) {
2626
return CACHE.computeIfAbsent(cacheKey, _ -> new ClassScanner(packages));
2727
}
2828

29-
public static final class ClassScanner implements AutoCloseable {
29+
public static final class ClassScanner {
3030
private final ScanResult scanResult;
3131
private final String[] packages;
3232

@@ -59,10 +59,5 @@ public Set<Class<?>> getClassesAnnotatedWith(Class<? extends Annotation> clazz)
5959
ClassInfo::loadClass
6060
).collect(Collectors.toSet());
6161
}
62-
63-
@Override
64-
public void close() {
65-
// No-op: this scanner is cached and its lifecycle is managed by ClassScannerUtil.
66-
}
6762
}
6863
}

0 commit comments

Comments
 (0)