Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ static Set<BeanInfo> findRemovableBeans(BeanResolver beanResolver, Collection<Be

Set<BeanInfo> unusedProducers = new HashSet<>();
Set<BeanInfo> unusedButDeclaresProducer = new HashSet<>();
List<BeanInfo> producers = beans.stream().filter(BeanInfo::isProducer)
.collect(Collectors.toList());
List<BeanInfo> producers = beans.stream().filter(BeanInfo::isProducer).toList();
// Collect all:
// - injected beans; skip delegate injection points and injection points that resolve to a built-in bean
// - Instance<> injection points
Expand Down Expand Up @@ -84,7 +83,7 @@ static Set<BeanInfo> findRemovableBeans(BeanResolver beanResolver, Collection<Be
// Custom exclusions
for (Predicate<BeanInfo> exclusion : allUnusedExclusions) {
if (exclusion.test(bean)) {
LOG.debugf("Unremovable - excluded by %s: %s", exclusion.toString(), bean);
LOG.debugf("Unremovable - excluded by %s: %s", exclusion, bean);
continue test;
}
}
Expand Down