Skip to content

Simplify injection points declaration #39751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

snicoll
Copy link
Member

@snicoll snicoll commented Feb 25, 2024

While working on Spring Framework 6.2.0-SNAPSHOT, this lead to a problem due to our revised generics handling that was very helpful and the code as it is now works as expected thanks to spring-projects/spring-framework#32327.

However, since the redundant declaration does not bring any added value, I am submitted the change anyway. It works as is with both Spring Framework 6.1 and 6.2.

This commit simplifies the generics used for SessionRepository and
FindByIdNameSessionRepository as their type signatures already declare
that `S` extends from `Session`.
@snicoll snicoll added the status: waiting-for-triage An issue we've not yet triaged label Feb 25, 2024
@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 26, 2024
@philwebb philwebb added this to the 3.3.x milestone Feb 26, 2024
scottfrederick pushed a commit that referenced this pull request Feb 27, 2024
This commit simplifies the generics used for SessionRepository and
FindByIdNameSessionRepository as their type signatures already declare
that `S` extends from `Session`.

See gh-39751
@scottfrederick scottfrederick modified the milestones: 3.3.x, 3.3.0-M3 Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants