GH-10069: Mitigate warning: [this-escape] in the project
Fixes: https://github.com/spring-projects/spring-integration/issues/10069 Suppress warnings introduced with Java 24 build toolchain: spring-integration-core: - Add `@SuppressWarnings("this-escape")` for 23 constructor calls - Make `PublisherAnnotationAdvisor.pointcut` `transient` (serial warning) spring-integration-amqp: - Add `@SuppressWarnings("this-escape")` for 7 constructor calls spring-integration-cassandra: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-event: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-file: - Add `@SuppressWarnings("this-escape")` for 4 constructor calls - Fix 2 deprecation warnings (`Locale` constructor, `Runtime.exec`) spring-integration-ftp: - Add `@SuppressWarnings("this-escape")` for 4 constructor calls spring-integration-graphql: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-jms: - Add `@SuppressWarnings("this-escape")` for 3 constructor calls spring-integration-jmx: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-kafka: - Add `@SuppressWarnings("this-escape")` for 4 constructor calls spring-integration-mail: - Add `@SuppressWarnings("this-escape")` for 5 constructor calls spring-integration-mqtt: - Add `@SuppressWarnings("this-escape")` for 2 constructor calls spring-integration-redis: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-rsocket: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-sftp: - Add `@SuppressWarnings("this-escape")` for 4 constructor calls - Fix 1 serial warnings spring-integration-smb: - Add `@SuppressWarnings("this-escape")` for 3 constructor calls spring-integration-webflux: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-websocket: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-ws: - Add `@SuppressWarnings("this-escape")` for 6 constructor calls spring-integration-xml: - Add `@SuppressWarnings("this-escape")` for 1 constructor call - Fix 1 deprecation warnings (`Locale` constructor) spring-integration-xmpp: - Add `@SuppressWarnings("this-escape")` for 1 constructor call spring-integration-zeromq: - Add `@SuppressWarnings("this-escape")` for 2 constructor calls Signed-off-by: Jooyoung Pyoung <pyoungjy@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -43,6 +43,7 @@ import org.springframework.ws.client.support.destination.DestinationProvider;
|
||||
*/
|
||||
public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutboundGateway {
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public MarshallingWebServiceOutboundGateway(DestinationProvider destinationProvider, Marshaller marshaller,
|
||||
Unmarshaller unmarshaller, WebServiceMessageFactory messageFactory) {
|
||||
super(destinationProvider, messageFactory);
|
||||
@@ -63,6 +64,7 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
this(destinationProvider, marshaller, (WebServiceMessageFactory) null);
|
||||
}
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public MarshallingWebServiceOutboundGateway(String uri, Marshaller marshaller, Unmarshaller unmarshaller,
|
||||
WebServiceMessageFactory messageFactory) {
|
||||
super(uri, messageFactory);
|
||||
@@ -88,6 +90,7 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
* @param webServiceTemplate the WebServiceTemplate
|
||||
* @since 5.0
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MarshallingWebServiceOutboundGateway(String uri, WebServiceTemplate webServiceTemplate) {
|
||||
super(uri, null);
|
||||
doSetWebServiceTemplate(webServiceTemplate);
|
||||
@@ -99,6 +102,7 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
* @param webServiceTemplate the WebServiceTemplate
|
||||
* @since 5.0
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public MarshallingWebServiceOutboundGateway(DestinationProvider destinationProvider,
|
||||
WebServiceTemplate webServiceTemplate) {
|
||||
super(destinationProvider, null);
|
||||
@@ -111,6 +115,7 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
* @param marshaller The marshaller.
|
||||
* @param unmarshallerArg The unmarshaller.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
private void configureMarshallers(Marshaller marshaller, @Nullable Unmarshaller unmarshallerArg) {
|
||||
Unmarshaller unmarshaller = unmarshallerArg;
|
||||
Assert.notNull(marshaller, "marshaller must not be null");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -25,6 +25,7 @@ import org.springframework.integration.ws.WebServiceHeaders;
|
||||
*/
|
||||
public class WebServiceHeaderEnricherParser extends HeaderEnricherParserSupport {
|
||||
|
||||
@SuppressWarnings("this-escape")
|
||||
public WebServiceHeaderEnricherParser() {
|
||||
this.addElementToHeaderMapping("soap-action", WebServiceHeaders.SOAP_ACTION);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user