Skip to content

Commit fbb1a06

Browse files
committed
still broken
1 parent 584ad20 commit fbb1a06

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/NamedSourceData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public final SourceData compute(String sourceName, ConfigUtils.Prefix prefix, St
5151
data = dataSupplier(sourceNames);
5252

5353
if (data.names().isEmpty()) {
54-
return new SourceData(ConfigUtils.sourceName(target, sourceName, namespace), Map.of());
54+
return SourceData.emptyRecord(ConfigUtils.sourceName(target, sourceName, namespace));
5555
}
5656

5757
if (prefix != ConfigUtils.Prefix.DEFAULT) {

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/SourceData.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.cloud.kubernetes.commons.config;
1818

19-
import java.util.Collections;
2019
import java.util.Map;
2120

2221
/**
@@ -28,7 +27,7 @@
2827
public record SourceData(String sourceName, Map<String, Object> sourceData) {
2928

3029
public static SourceData emptyRecord(String sourceName) {
31-
return new SourceData(sourceName, Collections.emptyMap());
30+
return new SourceData(sourceName, Map.of());
3231
}
3332

3433
}

0 commit comments

Comments
 (0)