Commit d6f044b7 authored by Szabolcs Gyurko's avatar Szabolcs Gyurko
Browse files

Small formatting changes

parent 1a9701bf
Pipeline #320 failed with stage
in 2 minutes and 34 seconds
......@@ -63,6 +63,7 @@ public class UIService {
/**
* Gets a page node list representation for the UI.
*
* @return NodeTree object
*/
@Cacheable
......@@ -72,6 +73,7 @@ public class UIService {
/**
* Gets a component node list representation for the UI.
*
* @return NodeTree object
*/
@Cacheable
......@@ -86,8 +88,9 @@ public class UIService {
List<Node> children = getNodeTreeBatch(Collections.singletonList(path));
while (!children.isEmpty()) {
allNodes.addAll(children);
children = getNodeTreeBatch(children.stream().flatMap(n -> n.getChildren().stream()
.map(c -> n.getPath().endsWith("/") ? n.getPath() + c : n.getPath() + "/" + c))
children = getNodeTreeBatch(children.stream()
.flatMap(n -> n.getChildren().stream()
.map(c -> n.getPath().endsWith("/") ? n.getPath() + c : n.getPath() + "/" + c))
.collect(Collectors.toList()));
}
......@@ -110,7 +113,7 @@ public class UIService {
urlUtils.getBatchUrl(),
HttpMethod.POST,
urlUtils.authenticatedEntity(batchReadRequest),
new ParameterizedTypeReference<List<Node>>() {
new ParameterizedTypeReference<>() {
});
return result.getBody();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment