Skip to content

Commit

Permalink
fix: fallback to patch class name instead of java.lang.Class class …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
oSumAtrIX committed Nov 18, 2022
1 parent 18fe35a commit 4164cb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private fun <T : Annotation> Class<*>.findAnnotationRecursively(

object PatchExtensions {
val Class<out Patch<Context>>.patchName: String
get() = findAnnotationRecursively(Name::class)?.name ?: this.javaClass.simpleName
get() = findAnnotationRecursively(Name::class)?.name ?: this.simpleName

val Class<out Patch<Context>>.version
get() = findAnnotationRecursively(Version::class)?.version
Expand Down

0 comments on commit 4164cb0

Please sign in to comment.