Skip to content

Commit

Permalink
HDDS-11149. Fix package scanner prefix
Browse files Browse the repository at this point in the history
Change-Id: I13bc9e28c5db3b706265abb8cecaf71c5201151c
  • Loading branch information
swamirishi committed Dec 18, 2024
1 parent b9ef7d0 commit ba133d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public ValidatorRegistry(Class<RequestType> requestType,
Class<RequestType[]> requestArrayClass = (Class<RequestType[]>) Array.newInstance(requestType, 0)
.getClass();
Set<Class<? extends Annotation>> validatorsToBeRegistered =
new Reflections(new ConfigurationBuilder().setUrls(ClasspathHelper.forPackage(""))
new Reflections(new ConfigurationBuilder().setUrls(ClasspathHelper.forPackage("org.apache"))
.setScanners(Scanners.TypesAnnotated)
.setParallel(true)).getTypesAnnotatedWith(RegisterValidator.class).stream()
.filter(annotationClass -> getReturnTypeOfAnnotationMethod((Class<? extends Annotation>) annotationClass,
Expand Down

0 comments on commit ba133d2

Please sign in to comment.