[BAEL-4279] Formatting

This commit is contained in:
Sarath 2021-05-13 13:11:38 +05:30
parent 4bc42f14a9
commit 29552100ca
2 changed files with 11 additions and 7 deletions

View File

@ -9,12 +9,16 @@ import java.util.stream.Collectors;
import org.reflections.Reflections;
import org.reflections.scanners.SubTypesScanner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.reflect.ClassPath;
@SuppressWarnings("rawtypes")
public class AccessingAllClassesInPackage {
private static final Logger LOG = LoggerFactory.getLogger(AccessingAllClassesInPackage.class);
public Set<Class> findAllClassesUsingClassLoader(String packageName) {
InputStream stream = ClassLoader.getSystemClassLoader()
.getResourceAsStream(packageName.replaceAll("[.]", "/"));
@ -29,7 +33,7 @@ public class AccessingAllClassesInPackage {
try {
return Class.forName(packageName + "." + className.substring(0, className.lastIndexOf('.')));
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.error("<<Class not found>>");
}
return null;
}