diff options
author | dpb <dpb@google.com> | 2016-03-31 11:19:43 -0700 |
---|---|---|
committer | Ron Shapiro <ronshapiro@google.com> | 2016-04-05 13:13:37 -0400 |
commit | af5da3e2f0515d1c7df71ad02cd8d61b625dcdcf (patch) | |
tree | 396f6a129856f7e4fa39411841715218f9e618e1 /examples | |
parent | f035689f344a108b15f0a99ce73751bda50edec1 (diff) | |
download | dagger2-af5da3e2f0515d1c7df71ad02cd8d61b625dcdcf.tar.gz |
When validating the binding graph, validate each binding's dependencies from the perspective of the component that owns that binding, not from its subcomponent. Otherwise there is potential for a graph with missing bindings not to be caught at validation time.
Specifically, before this CL, validation will incorrectly pass if a binding owned by a parent is used only from a binding in a subcomponent, and the parent's binding is missing dependencies that were previously resolved in the subcomponent.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=118699783
Diffstat (limited to 'examples')
-rw-r--r-- | examples/simple/pom.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/simple/pom.xml b/examples/simple/pom.xml index e3e260f35..e690d06d5 100644 --- a/examples/simple/pom.xml +++ b/examples/simple/pom.xml @@ -28,6 +28,11 @@ <dependencies> <dependency> + <!-- Force the correct version of Guava to be on the classpath. --> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + </dependency> + <dependency> <groupId>com.google.dagger</groupId> <artifactId>dagger</artifactId> <version>${project.version}</version> |