diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-11-14 11:01:56 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-11-14 11:37:14 +0100 |
commit | ab09b81951e20cd85d8c2e595ca02be9e3deae77 (patch) | |
tree | 1ce1a17d815c965ca30d6f1c463b3e9edb165c46 /config-model-api/src/main/java | |
parent | 0979fffb39994efb81fb6f51daf807dc696eae26 (diff) |
Extract factory method
Diffstat (limited to 'config-model-api/src/main/java')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/application/api/xml/DeploymentSpecXmlReader.java | 6 |
1 files changed, 3 insertions, 3 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 82402afa3f3..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 @@ -148,7 +148,7 @@ public class DeploymentSpecXmlReader { optionalIntegerAttribute(majorVersionAttribute, root), stringAttribute(athenzDomainAttribute, root).map(AthenzDomain::from), stringAttribute(athenzServiceAttribute, root).map(AthenzService::from), - stringAttribute(cloudAccountAttribute, root).map(CloudAccount::new), + stringAttribute(cloudAccountAttribute, root).map(CloudAccount::from), applicationEndpoints, xmlForm, deprecatedElements); @@ -186,7 +186,7 @@ public class DeploymentSpecXmlReader { int maxIdleHours = getWithFallback(instanceElement, parentTag, upgradeTag, "max-idle-hours", Integer::parseInt, 8); List<DeploymentSpec.ChangeBlocker> changeBlockers = readChangeBlockers(instanceElement, parentTag); Optional<AthenzService> athenzService = mostSpecificAttribute(instanceElement, athenzServiceAttribute).map(AthenzService::from); - Optional<CloudAccount> cloudAccount = mostSpecificAttribute(instanceElement, cloudAccountAttribute).map(CloudAccount::new); + Optional<CloudAccount> cloudAccount = mostSpecificAttribute(instanceElement, cloudAccountAttribute).map(CloudAccount::from); Notifications notifications = readNotifications(instanceElement, parentTag); // Values where there is no default @@ -448,7 +448,7 @@ public class DeploymentSpecXmlReader { } private Optional<CloudAccount> readCloudAccount(Element tag) { - return mostSpecificAttribute(tag, cloudAccountAttribute).map(CloudAccount::new); + return mostSpecificAttribute(tag, cloudAccountAttribute).map(CloudAccount::from); } private Optional<String> readGlobalServiceId(Element environmentTag) { |