mirror of https://github.com/halo-dev/halo
Fix startup exception
parent
0385dec6ca
commit
ec4932ef4a
|
@ -29,7 +29,7 @@ public interface PropertyEnum extends ValueEnum<String> {
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
static <T> T convertTo(@NonNull String value, @NonNull Class<T> type) {
|
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");
|
Assert.notNull(type, "Type must not be null");
|
||||||
|
|
||||||
if (type.isAssignableFrom(String.class)) {
|
if (type.isAssignableFrom(String.class)) {
|
||||||
|
|
Loading…
Reference in New Issue