Polish
See gh-15695
This commit is contained in:
committed by
Stephane Nicoll
parent
b22561877d
commit
af3ed9ff9f
@@ -97,7 +97,7 @@ class SpringBootTestRandomPortEnvironmentPostProcessor
|
||||
return environment.getConversionService().convert(value, Integer.class);
|
||||
}
|
||||
catch (ConversionFailedException ex) {
|
||||
if (ClassUtils.isAssignable(value.getClass(), String.class)) {
|
||||
if (value instanceof String) {
|
||||
return getResolvedValueIfPossible(environment, (String) value);
|
||||
}
|
||||
throw ex;
|
||||
|
||||
Reference in New Issue
Block a user