Skip to content

Commit

Permalink
Fix startup exception
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnNiang committed Sep 4, 2019
1 parent 0385dec commit ec4932e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit ec4932e

Please sign in to comment.