This commit is contained in:
Stephane Nicoll
2019-03-15 14:19:54 +01:00
parent 9465a70fa6
commit 1ad3dae770
6 changed files with 18 additions and 33 deletions

View File

@@ -54,9 +54,9 @@ public class UiController {
List<DependencyGroup> dependencyGroups = this.metadataProvider.get()
.getDependencies().getContent();
List<DependencyItem> content = new ArrayList<>();
dependencyGroups.forEach((group) -> group.getContent().forEach((dependency) -> {
content.add(new DependencyItem(group.getName(), dependency));
}));
dependencyGroups
.forEach((group) -> group.getContent().forEach((dependency) -> content
.add(new DependencyItem(group.getName(), dependency))));
String json = writeDependencies(content);
return ResponseEntity.ok().contentType(MediaType.APPLICATION_JSON)
.eTag(createUniqueId(json)).body(json);