Apply SingleSpaceSeparator Checkstyle module

This commit also fixes its violations.

Closes gh-31469
This commit is contained in:
Johnny Lim
2023-10-22 00:10:45 +09:00
committed by Sam Brannen
parent 8a05661707
commit 64e9fcad53
164 changed files with 229 additions and 226 deletions

View File

@@ -726,7 +726,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
}
else if (this.inputStream != null) {
throw new IllegalStateException(
"Cannot call getReader() after getInputStream() has already been called for the current request") ;
"Cannot call getReader() after getInputStream() has already been called for the current request");
}
if (this.content != null) {

View File

@@ -30,7 +30,7 @@ import org.springframework.util.StringUtils;
* @author Sam Brannen
* @since 5.2.5
*/
class DynamicValuesPropertySource extends EnumerablePropertySource<Map<String, Supplier<Object>>> {
class DynamicValuesPropertySource extends EnumerablePropertySource<Map<String, Supplier<Object>>> {
DynamicValuesPropertySource(String name, Map<String, Supplier<Object>> valueSuppliers) {
super(name, valueSuppliers);

View File

@@ -51,7 +51,7 @@ public class XmlExpectationsHelper {
assertThat("Body content", document, matcher);
}
private Document parseXmlString(String xml) throws Exception {
private Document parseXmlString(String xml) throws Exception {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder documentBuilder = factory.newDocumentBuilder();

View File

@@ -478,7 +478,7 @@ class DefaultWebTestClient implements WebTestClient {
return new DefaultBodyContentSpec(entityResult);
}
private <B> EntityExchangeResult<B> initEntityExchangeResult(@Nullable B body) {
private <B> EntityExchangeResult<B> initEntityExchangeResult(@Nullable B body) {
EntityExchangeResult<B> result = new EntityExchangeResult<>(this.exchangeResult, body);
result.assertWithDiagnostics(() -> this.entityResultConsumer.accept(result));
return result;

View File

@@ -73,7 +73,7 @@ class WiretapConnector implements ClientHttpConnector {
requestRef.set(wrapped);
return requestCallback.apply(wrapped);
})
.map(response -> {
.map(response -> {
WiretapClientHttpRequest wrappedRequest = requestRef.get();
String header = WebTestClient.WEBTESTCLIENT_REQUEST_ID;
String requestId = wrappedRequest.getHeaders().getFirst(header);