Fix checkstyle ternary issues
Fix checkstyle issues with ternary expressions following the spring-javaformat upgrade. See gh-13932
This commit is contained in:
@@ -45,8 +45,8 @@ public class SpockTestRestTemplateExample {
|
||||
ObjectProvider<RestTemplateBuilder> builderProvider,
|
||||
Environment environment) {
|
||||
RestTemplateBuilder builder = builderProvider.getIfAvailable();
|
||||
TestRestTemplate template = (builder != null ? new TestRestTemplate(builder)
|
||||
: new TestRestTemplate());
|
||||
TestRestTemplate template = (builder != null) ? new TestRestTemplate(builder)
|
||||
: new TestRestTemplate();
|
||||
template.setUriTemplateHandler(new LocalHostUriTemplateHandler(environment));
|
||||
return template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user