Fix startup exception

pull/296/head
johnniang 2019-09-04 17:32:22 +08:00
parent 0385dec6ca
commit ec4932ef4a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public interface PropertyEnum extends ValueEnum<String> {
*/
@SuppressWarnings("unchecked")
static <T> T convertTo(@NonNull String value, @NonNull Class<T> type) {
Assert.hasText(value, "Value must not be null");
Assert.notNull(value, "Value must not be null");
Assert.notNull(type, "Type must not be null");
if (type.isAssignableFrom(String.class)) {