Skip to content

Commit

Permalink
Use a RequestFulfillment for delegate (@BINDS) factory initialization.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158268816
  • Loading branch information
netdpb authored and ronshapiro committed Jun 14, 2017
1 parent d0bb8d2 commit 93bd6ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions java/dagger/internal/codegen/AbstractComponentWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
Expand Down Expand Up @@ -705,9 +704,7 @@ private Optional<CodeBlock> initializeContributionBinding(BindingKey bindingKey)
CodeBlock.of(
"($T) $L",
binding.bindingType().frameworkClass(),
getMemberSelect(
Iterables.getOnlyElement(binding.explicitDependencies()).bindingKey())
.getExpressionFor(name));
getRequestFulfillment(getOnlyElement(binding.frameworkDependencies())));
return Optional.of(
CodeBlocks.concat(
ImmutableList.of(
Expand Down

0 comments on commit 93bd6ad

Please sign in to comment.