Skip to content

Remove Unnecessary AuthorizationDecision Cast - #19283

Merged
jzheaux merged 1 commit into
spring-projects:7.0.xfrom
ngocnhan-tran1996:gh-19282
Aug 11, 2026
Merged

Remove Unnecessary AuthorizationDecision Cast#19283
jzheaux merged 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);

@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
Closes spring-projectsgh-19282

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
@jzheaux jzheaux added type: bug A general bug in: config An issue in spring-security-config and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 11, 2026
@jzheaux jzheaux self-assigned this Aug 11, 2026
@jzheaux jzheaux added this to the 7.0.7 milestone Aug 11, 2026
@jzheaux jzheaux added type: enhancement A general enhancement and removed type: bug A general bug labels Aug 11, 2026
@jzheaux jzheaux changed the title Remove unnecessary AuthorizationDecision cast Remove Unnecessary AuthorizationDecision Cast Aug 11, 2026
@jzheaux
jzheaux merged commit fa92ce3 into spring-projects:7.0.x Aug 11, 2026
6 checks passed
@ngocnhan-tran1996
ngocnhan-tran1996 deleted the gh-19282 branch August 12, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: config An issue in spring-security-config type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FactorAuthorizationDecision cannot be cast to class AuthorizationDecision

3 participants