From 3d2d740a33b3c6f46cdc0e44bde4f7d214920f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20J=C3=A4derberg?= Date: Wed, 20 Dec 2023 16:21:19 +0100 Subject: [PATCH] Shush: Unuse deprecated scanner --- .../main/java/org/neo4j/gds/ProcedureAndFunctionScanner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proc/common/src/main/java/org/neo4j/gds/ProcedureAndFunctionScanner.java b/proc/common/src/main/java/org/neo4j/gds/ProcedureAndFunctionScanner.java index f4b7e8b802b..c6beae1e9e7 100644 --- a/proc/common/src/main/java/org/neo4j/gds/ProcedureAndFunctionScanner.java +++ b/proc/common/src/main/java/org/neo4j/gds/ProcedureAndFunctionScanner.java @@ -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; @@ -36,7 +36,7 @@ public final class ProcedureAndFunctionScanner { private static final List reflections = PACKAGES_TO_SCAN .stream() - .map(pkg -> new Reflections(pkg, new MethodAnnotationsScanner())) + .map(pkg -> new Reflections(pkg, Scanners.MethodsAnnotated)) .collect(Collectors.toList()); private ProcedureAndFunctionScanner() {}