Skip to content

Polish SimpleGrantedAuthority#18062

Merged
jzheaux merged 2 commits into
spring-projects:mainfrom
quaff:patch-12
Oct 20, 2025
Merged

Polish SimpleGrantedAuthority#18062
jzheaux merged 2 commits into
spring-projects:mainfrom
quaff:patch-12

Conversation

@quaff

@quaff quaff commented Oct 17, 2025

Copy link
Copy Markdown
Contributor
  1. Add Javadoc to state that role is prefixed.
  2. Rename constructor argument from role to authority for better readability.

See #17859 (comment)

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 17, 2025
quaff and others added 2 commits October 20, 2025 14:08
1. Add Javadoc to state that role is prefixed.
2. Rename constructor argument from `role` to `authority` for better readability.

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
1. Removed comment about not changing field name in a
serialized object as this is true for all fields in a
Java-serialize POJO
2. Added example value for the constructor that demonstrates
the relationship between a role and an authority

Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
@jzheaux jzheaux self-assigned this Oct 20, 2025
@jzheaux jzheaux added in: docs An issue in Documentation or samples type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 20, 2025
@jzheaux jzheaux added this to the 7.0.0 milestone Oct 20, 2025
@jzheaux jzheaux merged commit eb43830 into spring-projects:main Oct 20, 2025
6 checks passed
@jzheaux

jzheaux commented Oct 20, 2025

Copy link
Copy Markdown
Collaborator

Thanks, @quaff, for this polish. It's now merged into main.

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

Labels

in: docs An issue in Documentation or samples type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants