Skip to content

Remove unnecessary AuthorizationDecision cast#19283

Open
ngocnhan-tran1996 wants to merge 1 commit into
spring-projects:7.0.xfrom
ngocnhan-tran1996:gh-19282
Open

Remove unnecessary AuthorizationDecision cast#19283
ngocnhan-tran1996 wants to merge 1 commit into
spring-projects:7.0.xfrom
ngocnhan-tran1996:gh-19282

Conversation

@ngocnhan-tran1996

Copy link
Copy Markdown
Contributor

Closes gh-19282

The method was deprecated in 6.5.x and removed in 7.0.x, so I don't think this cast is necessary.

/**
* Determines if access is granted for a specific authentication and object.
* @param authentication the {@link Supplier} of the {@link Authentication} to check
* @param object the {@link T} object to check
* @return an {@link AuthorizationDecision} or null if no decision could be made
* @deprecated please use {@link #authorize(Supplier, Object)} instead
*/
@Nullable
@Deprecated
AuthorizationDecision check(Supplier<Authentication> authentication, T object);

Closes spring-projectsgh-19282

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
@ngocnhan-tran1996 ngocnhan-tran1996 changed the base branch from main to 7.0.x June 8, 2026 17:09
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FactorAuthorizationDecision cannot be cast to class AuthorizationDecision

2 participants