summaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java')
-rw-r--r--config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java b/config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java
index 8182e697e7e..c1ecddee456 100644
--- a/config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java
+++ b/config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java
@@ -215,7 +215,7 @@ public class DeploymentSpecXmlReader {
notifications,
endpoints,
now))
- .toList();
+ .collect(Collectors.toList());
}
private List<Step> readSteps(Element stepTag, Map<String, String> prodAttributes, Element parentTag) {
@@ -250,7 +250,7 @@ public class DeploymentSpecXmlReader {
case prodTag: // regions, delay and parallel may be nested within, but we can flatten them
return XML.getChildren(stepTag).stream()
.flatMap(child -> readNonInstanceSteps(child, prodAttributes, stepTag).stream())
- .toList();
+ .collect(Collectors.toList());
case delayTag:
return List.of(new Delay(Duration.ofSeconds(longAttribute("hours", stepTag) * 60 * 60 +
longAttribute("minutes", stepTag) * 60 +
@@ -258,11 +258,11 @@ public class DeploymentSpecXmlReader {
case parallelTag: // regions and instances may be nested within
return List.of(new ParallelSteps(XML.getChildren(stepTag).stream()
.flatMap(child -> readSteps(child, prodAttributes, parentTag).stream())
- .toList()));
+ .collect(Collectors.toList())));
case stepsTag: // regions and instances may be nested within
return List.of(new Steps(XML.getChildren(stepTag).stream()
.flatMap(child -> readSteps(child, prodAttributes, parentTag).stream())
- .toList()));
+ .collect(Collectors.toList())));
case regionTag:
return List.of(readDeclaredZone(Environment.prod, athenzService, testerFlavor, stepTag));
default:
@@ -378,7 +378,7 @@ public class DeploymentSpecXmlReader {
* Imposes some constraints on tag order which are not expressible in the schema
*/
private void validateTagOrder(Element root) {
- List<String> tags = XML.getChildren(root).stream().map(Element::getTagName).toList();
+ List<String> tags = XML.getChildren(root).stream().map(Element::getTagName).collect(Collectors.toList());
for (int i = 0; i < tags.size(); i++) {
if (tags.get(i).equals(blockChangeTag)) {
String constraint = "<block-change> must be placed after <test> and <staging> and before <prod>";