From d9b299a8c315f0dddffc979508d72ca0f1627557 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Fri, 20 Nov 2015 13:18:27 -0700 Subject: [PATCH] change constraint on enum from @NotEmpty to @NotNull --- .../cloud/consul/config/ConsulConfigProperties.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java index d3297d89..c5c12baf 100644 --- a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java +++ b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java @@ -16,6 +16,8 @@ package org.springframework.cloud.consul.config; +import javax.validation.constraints.NotNull; + import org.hibernate.validator.constraints.NotEmpty; import org.springframework.boot.context.properties.ConfigurationProperties; @@ -38,7 +40,7 @@ public class ConsulConfigProperties { @NotEmpty private String profileSeparator = ","; - @NotEmpty + @NotNull private Format format = Format.KEY_VALUE; /**