Skip to content

Suppress removal Warnings on RestOperations/RestTemplate Usage #19544

Description

@jzheaux

Spring Framework 7.1 deprecates RestTemplate and related types for removal
(spring-framework#36574). Spring Security has many internal usages of
RestOperations/RestTemplate that will need to move to RestClient
(tracked in #19027), but until that migration happens, upgrading to
Framework 7.1 will produce removal deprecation warnings throughout the
build.

Add @SuppressWarnings("removal") at each internal usage site as an interim
measure so the Framework 7.1 upgrade doesn't introduce a wave of warnings
ahead of the real migration in #19027.

Related to #19528 and #19027.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions