Replace some String.length() checks with String.isEmpty()
Closes gh-10451
This commit is contained in:
committed by
Stephane Nicoll
parent
b08e51f0b3
commit
756398b52c
@@ -113,7 +113,7 @@ public class MockRestServiceServerAutoConfiguration {
|
||||
private RequestExpectationManager getDelegate() {
|
||||
Map<RestTemplate, RequestExpectationManager> expectationManagers = this.customizer
|
||||
.getExpectationManagers();
|
||||
Assert.state(expectationManagers.size() > 0,
|
||||
Assert.state(!expectationManagers.isEmpty(),
|
||||
"Unable to use auto-configured MockRestServiceServer since "
|
||||
+ "MockServerRestTemplateCustomizer has not been bound to "
|
||||
+ "a RestTemplate");
|
||||
|
||||
Reference in New Issue
Block a user