mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-18 09:44:47 +08:00
Polish
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user