Skip to content

Commit

Permalink
Internal changes
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 605384714
  • Loading branch information
bcorso authored and Dagger Team committed Feb 8, 2024
1 parent 09e5ac2 commit 7ac1dcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 354 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,14 @@ public String format(DependencyEdge object) {
}
};

private static boolean isTracedRequest(
private boolean isTracedRequest(
ImmutableList<DependencyEdge> dependencyTrace, DependencyEdge request) {
return !dependencyTrace.isEmpty() && request.equals(dependencyTrace.get(0));
return !dependencyTrace.isEmpty()
&& request.dependencyRequest().equals(dependencyTrace.get(0).dependencyRequest())
// Comparing the dependency request is not enough since the request is just the key.
// Instead, we check that the target incident node is the same.
&& graph.network().incidentNodes(request).target()
.equals(graph.network().incidentNodes(dependencyTrace.get(0)).target());
}

/**
Expand Down
352 changes: 0 additions & 352 deletions javatests/dagger/internal/codegen/MissingBindingSuggestionsTest.java

This file was deleted.

0 comments on commit 7ac1dcc

Please sign in to comment.