diff --git a/service-config/src/main/java/com/palantir/conjure/java/api/config/service/ServicesConfigBlock.java b/service-config/src/main/java/com/palantir/conjure/java/api/config/service/ServicesConfigBlock.java index 312890e1c..d852e351c 100644 --- a/service-config/src/main/java/com/palantir/conjure/java/api/config/service/ServicesConfigBlock.java +++ b/service-config/src/main/java/com/palantir/conjure/java/api/config/service/ServicesConfigBlock.java @@ -35,7 +35,7 @@ * fully-specified {@link ServiceConfiguration} objects. */ @DoNotLog -@Immutable +@Immutable(singleton = true) @JsonSerialize(as = ImmutableServicesConfigBlock.class) @JsonDeserialize(builder = ServicesConfigBlock.Builder.class) @ImmutablesStyle @@ -105,6 +105,10 @@ public abstract class ServicesConfigBlock { @JsonAlias("fallback-to-common-name-verification") public abstract Optional defaultFallbackToCommonNameVerification(); + public static ServicesConfigBlock empty() { + return ImmutableServicesConfigBlock.of(); + } + public static Builder builder() { return new Builder(); }