Skip to content

Commit 7e46bef

Browse files
committed
Use ReflectiveClassBuildItem builder instead of deprecated constructors
1 parent ea3468a commit 7e46bef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extensions/caffeine/deployment/src/main/java/io/quarkus/caffeine/deployment/CaffeineProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ void cacheLoaders(CombinedIndexBuildItem combinedIndex, BuildProducer<Reflective
4242
}
4343
if (!effectiveImplementorNames.isEmpty()) {
4444
//Do not force registering any Caffeine classes if we can avoid it: there's a significant chain reaction
45-
reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, CACHE_LOADER_CLASS_NAME));
46-
for (String name : effectiveImplementorNames) {
47-
reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, name));
48-
}
45+
reflectiveClasses.produce(ReflectiveClassBuildItem.builder(CACHE_LOADER_CLASS_NAME).methods(true).build());
46+
47+
reflectiveClasses.produce(
48+
ReflectiveClassBuildItem.builder(effectiveImplementorNames.toArray(new String[0])).methods(true).build());
4949
}
5050
}
5151

0 commit comments

Comments
 (0)