Skip to content

Commit

Permalink
Move off of a google-internal API on FluentIterable.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=90525706
  • Loading branch information
cgruber committed Apr 7, 2015
1 parent 19b85c9 commit f03415a
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -745,8 +745,11 @@ private String formatBindingType(BindingType type) {

private void reportCycle(DependencyRequest request, Deque<ResolvedRequest> path,
final ValidationReport.Builder<BindingGraph> reportBuilder) {
ImmutableList<String> printableDependencyPath = FluentIterable.of(request)
.append(Iterables.transform(path, REQUEST_FROM_RESOLVED_REQUEST))
ImmutableList<DependencyRequest> pathElements = ImmutableList.<DependencyRequest>builder()
.add(request)
.addAll(Iterables.transform(path, REQUEST_FROM_RESOLVED_REQUEST))
.build();
ImmutableList<String> printableDependencyPath = FluentIterable.from(pathElements)
.transform(dependencyRequestFormatter)
.filter(Predicates.not(Predicates.equalTo("")))
.toList()
Expand Down

0 comments on commit f03415a

Please sign in to comment.