Skip to content

Commit

Permalink
Remove type parameter in WithSuperTypes.withAnnotations functions
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderTvis committed Sep 12, 2023
1 parent f5f5fd1 commit d1c4e17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions reflekt-dsl/src/main/kotlin/org/jetbrains/reflekt/Reflekt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ object Reflekt {
*
* @param klasses
*/
inline fun <reified Q : T> withAnnotations(vararg klasses: KClass<out Annotation>) =
WithAnnotations<Q>(klasses.mapNotNull { it.qualifiedName }.toSet(), fqNames)
fun withAnnotations(vararg klasses: KClass<out Annotation>) = WithAnnotations<T>(klasses.mapNotNull { it.qualifiedName }.toSet(), fqNames)
}

/**
Expand Down Expand Up @@ -193,8 +192,7 @@ object Reflekt {
*
* @param klasses
*/
inline fun <reified Q : T> withAnnotations(vararg klasses: KClass<out Annotation>) =
WithAnnotations<Q>(klasses.mapNotNull { it.qualifiedName }.toSet(), fqNames)
fun withAnnotations(vararg klasses: KClass<out Annotation>) = WithAnnotations<T>(klasses.mapNotNull { it.qualifiedName }.toSet(), fqNames)
}

/**
Expand Down

0 comments on commit d1c4e17

Please sign in to comment.