Skip to content

Commit

Permalink
Ignore empty bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasrutishauser committed Sep 13, 2024
1 parent 67904f1 commit 203489b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public <Q> Supplier<Q> getCompiledBinding(Dependency<Q> dep) {
loadFromClassLoader(classLoader);
injector.getBindings().keySet().stream()
.filter(k -> k.getQualifier() != null)
.filter(k -> !injector.getBindings().get(k).isEmpty())
.sorted(Comparator.comparing(k -> k.getRawType().getName()))
.distinct()
.forEach(key -> {
Expand Down

0 comments on commit 203489b

Please sign in to comment.