diff --git a/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/graal/Substitute_JandexBehavior.java b/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/graal/Substitute_JandexBehavior.java index 18bfe47e63283..7315ade3084a6 100644 --- a/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/graal/Substitute_JandexBehavior.java +++ b/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/graal/Substitute_JandexBehavior.java @@ -13,7 +13,7 @@ final class Substitute_JandexBehavior { @Substitute - public static T doWithJandex(JandexBehavior.JandexOperation operation) { + public static void doWithJandex(JandexBehavior.JandexOperation operation) { throw new IllegalStateException("Jandex should not be used at runtime."); }