diff --git a/src/main/kotlin/app/revanced/patcher/extensions/AnnotationExtensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/AnnotationExtensions.kt index e5bf9d8..f122bff 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/AnnotationExtensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/AnnotationExtensions.kt @@ -10,7 +10,7 @@ internal object AnnotationExtensions { fun Class<*>.findAnnotationRecursively(targetAnnotation: Class): T? { fun Class<*>.findAnnotationRecursively( targetAnnotation: Class, - searchedAnnotations: MutableSet, + searchedAnnotations: HashSet, ): T? { val found = this.annotations.firstOrNull { it.annotationClass.java.name == targetAnnotation.name } @@ -30,6 +30,6 @@ internal object AnnotationExtensions { return null } - return this.findAnnotationRecursively(targetAnnotation, mutableSetOf()) + return this.findAnnotationRecursively(targetAnnotation, hashSetOf()) } }