Skip to content

Remove deprecations in HTTP Adapter after upgrade to Spring 3.1.1 [INT-2528] #6507

@spring-operator

Description

@spring-operator

Gunnar Hillert opened INT-2528 and commented

:spring-integration-http:compileTestJava

/Users/ghillert/dev/git-ghillert/spring-integration/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java:53: warning: [deprecation] org.springframework.test.annotation.ExpectedException in org.springframework.test.annotation has been deprecated
import org.springframework.test.annotation.ExpectedException;
                                          ^
/Users/ghillert/dev/git-ghillert/spring-integration/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java:182: warning: [deprecation] org.springframework.test.annotation.ExpectedException in org.springframework.test.annotation has been deprecated
	@ExpectedException(SpelEvaluationException.class)
	 ^
/Users/ghillert/dev/git-ghillert/spring-integration/spring-integration-http/src/test/java/org/springframework/integration/http/MockHttpServletResponse.java:48: warning: [cast] redundant cast to java.lang.String
		return (String) this.getHeader("Content-Type");
		       ^
/Users/ghillert/dev/git-ghillert/spring-integration/spring-integration-http/src/test/java/org/springframework/integration/http/support/DefaultHttpHeaderMapperFromMessageInboundTests.java:463: warning: [deprecation] createDefaultConversionService() in org.springframework.core.convert.support.ConversionServiceFactory has been deprecated
		ConversionService cs = ConversionServiceFactory.createDefaultConversionService();
		                                               ^
/Users/ghillert/dev/git-ghillert/spring-integration/spring-integration-http/src/test/java/org/springframework/integration/http/support/DefaultHttpHeaderMapperFromMessageInboundTests.java:484: warning: [deprecation] createDefaultConversionService() in org.springframework.core.convert.support.ConversionServiceFactory has been deprecated
		GenericConversionService cs = ConversionServiceFactory.createDefaultConversionService();
		                                                      ^
5 warnings

Affects: 2.2 M1

Issue Links:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions