Skip to content

Commit

Permalink
Shush: Unuse deprecated scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaderberg committed Dec 20, 2023
1 parent 17d84d2 commit 3d2d740
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package org.neo4j.gds;

import org.reflections.Reflections;
import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.scanners.Scanners;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
Expand All @@ -36,7 +36,7 @@ public final class ProcedureAndFunctionScanner {

private static final List<Reflections> reflections = PACKAGES_TO_SCAN
.stream()
.map(pkg -> new Reflections(pkg, new MethodAnnotationsScanner()))
.map(pkg -> new Reflections(pkg, Scanners.MethodsAnnotated))
.collect(Collectors.toList());

private ProcedureAndFunctionScanner() {}
Expand Down

0 comments on commit 3d2d740

Please sign in to comment.