Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user