use of org.sonar.ce.task.projectanalysis.component.TypeAwareVisitorAdapter in project sonarqube by SonarSource.
the class FileMoveDetectionStep method getReportFilesByUuid.
private static Map<String, Component> getReportFilesByUuid(Component root) {
final ImmutableMap.Builder<String, Component> builder = ImmutableMap.builder();
new DepthTraversalTypeAwareCrawler(new TypeAwareVisitorAdapter(CrawlerDepthLimit.FILE, POST_ORDER) {
@Override
public void visitFile(Component file) {
builder.put(file.getUuid(), file);
}
}).visit(root);
return builder.build();
}
Aggregations