Add EmptyLineSeparator Checkstyle rule

* Support "blank lines around" via `spring-framework.xml` IDEA config
* Fix all the Checkstyle violations
This commit is contained in:
Artem Bilan
2024-03-27 16:54:25 -04:00
parent f71a2234d8
commit c155d5d418
932 changed files with 1341 additions and 2485 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -222,7 +222,6 @@ public class DefaultSoapHeaderMapperTests {
System. out. println(stringResult.toString());*/
}
@Test
public void testDoNotOverriderSoapAction() throws Exception {
MimeHeaders mimeHeaders = new MimeHeaders();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -110,7 +110,6 @@ public class MarshallingWebServiceIntegrationTests {
}
}
public boolean supports(Class<?> clazz) {
return true;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -107,7 +107,6 @@ public class SimpleWebServiceInboundGatewayTests {
.isThrownBy(() -> gateway.invoke(context));
}
private Answer<Boolean> withReplyTo(final MessageChannel replyChannel) {
return invocation -> {
replyChannel.send((Message<?>) invocation.getArguments()[0]);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -116,7 +116,6 @@ public class SimpleWebServiceOutboundGatewayTests {
assertThat(soapActionFromCallback.get()).isEqualTo("\"" + soapActionHeaderValue + "\"");
}
@Test //INT-1029
public void testWsOutboundGatewayInsideChain() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2022 the original author or authors.
* Copyright 2016-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -112,7 +112,6 @@ public class WebServiceInboundGatewayJavaConfigTests {
assertThat(output.toString().endsWith(input)).isTrue();
context = mock(MessageContext.class);
request = mock(SoapMessage.class);

View File

@@ -47,7 +47,6 @@ public class DefaultConfigurationTests {
@Autowired
private ApplicationContext context;
@Test
public void verifyErrorChannel() {
Object errorChannel = context.getBean("errorChannel");

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,6 @@ import org.springframework.oxm.XmlMappingException;
*/
public class StubMarshallerAndUnmarshaller implements Marshaller, Unmarshaller {
@SuppressWarnings("rawtypes")
public boolean supports(Class clazz) {
return false;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@ import org.springframework.oxm.XmlMappingException;
*/
public class StubUnmarshaller implements Unmarshaller {
@SuppressWarnings("rawtypes")
public boolean supports(Class clazz) {
return false;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -179,7 +179,6 @@ public class WebServiceInboundGatewayParserTests {
assertThat(TestUtils.getPropertyValue(replyTimeoutGateway, "messagingTemplate.receiveTimeout")).isEqualTo(1234L);
}
@SuppressWarnings("unused")
private static class TestHeaderMapper implements SoapHeaderMapper {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -202,7 +202,6 @@ public class WebServiceOutboundGatewayParserTests {
assertThat(accessor.getPropertyValue("faultMessageResolver")).isEqualTo(resolver);
}
@Test
public void simpleGatewayWithCustomMessageSender() {
AbstractEndpoint endpoint = this.context.getBean("gatewayWithCustomMessageSender", AbstractEndpoint.class);