Skip to content

Polish Kotlin DSL addFilterBefore to use reified type parameter#18838

Open
Jeongjunyun777 wants to merge 2 commits intospring-projects:mainfrom
Jeongjunyun777:fix/kotlin-addFilterBefore-signature
Open

Polish Kotlin DSL addFilterBefore to use reified type parameter#18838
Jeongjunyun777 wants to merge 2 commits intospring-projects:mainfrom
Jeongjunyun777:fix/kotlin-addFilterBefore-signature

Conversation

@Jeongjunyun777
Copy link

Fixes #17993

Update addFilterBefore extension function parameter type from Filter to T
to ensure type safety and maintain consistency with the reified type parameter in Kotlin DSL.

Before:

inline fun <reified T : Filter> addFilterBefore(filter: Filter) {
    this.addFilterBefore(filter, beforeFilter = T::class.java)
}

After:

inline fun <reified T : Filter> addFilterBefore(filter: T) {
    this.addFilterBefore(filter, beforeFilter = T::class.java)
}
```****

…2 client

Signed-off-by: C0ng_yun <s25069@gsm.hs.kr>
Kotlin DSL

Signed-off-by: C0ng_yun <s25069@gsm.hs.kr>
@Jeongjunyun777 Jeongjunyun777 force-pushed the fix/kotlin-addFilterBefore-signature branch from 9f0bc4c to 6414909 Compare March 3, 2026 08:03
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 3, 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.

incorrect definition of addFilterBefore for kotlin

2 participants