Toggle navigation
Home
java.util.List<org.sonar.server.component.index.ComponentHitsPerQualifier> to org.sonar.server.component.index.ComponentIndexResults
No. of Instances - 8
No. of Commits - 1
No. of Projects - {'sonarqube'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
componentsPerQualifiers.stream().map(ComponentHitsPerQualifier::getHits).flatMap(Collection::stream).map(ComponentHit::getUuid)
to
componentsPerQualifiers.getQualifiers().map(ComponentHitsPerQualifier::getHits).flatMap(Collection::stream).map(ComponentHit::getUuid)
collect
to
build
componentsPerQualifiers.stream().map(qualifier -> { List<Suggestion> suggestions=qualifier.getHits().stream().map(hit -> toSuggestion(hit,recentlyBrowsedKeys,componentsByUuids,organizationByUuids,projectsByUuids)).collect(toList()); return Category.newBuilder().setCategory(qualifier.getQualifier()).setMore(qualifier.getNumberOfFurtherResults()).addAllSuggestions(suggestions).build(); } )
to
componentsPerQualifiers.getQualifiers().map(qualifier -> { List<Suggestion> suggestions=qualifier.getHits().stream().map(hit -> toSuggestion(hit,recentlyBrowsedKeys,favoriteKeys,componentsByUuids,organizationByUuids,projectsByUuids)).collect(toList()); return Category.newBuilder().setCategory(qualifier.getQualifier()).setMore(qualifier.getNumberOfFurtherResults()).addAllSuggestions(suggestions).build(); } )