From 9889ec9d03c9496950420afa0e54226f3a2c1c2e Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Thu, 14 Apr 2022 12:33:31 +0200 Subject: [PATCH] docs: fix wrong wording --- src/main/kotlin/app/revanced/patcher/proxy/ClassProxy.kt | 5 +++-- .../revanced/patcher/signature/SignatureResolverResult.kt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/proxy/ClassProxy.kt b/src/main/kotlin/app/revanced/patcher/proxy/ClassProxy.kt index 037864a..4b27eb5 100644 --- a/src/main/kotlin/app/revanced/patcher/proxy/ClassProxy.kt +++ b/src/main/kotlin/app/revanced/patcher/proxy/ClassProxy.kt @@ -7,7 +7,7 @@ import org.jf.dexlib2.iface.ClassDef * A proxy class for a [ClassDef]. * * A class proxy simply holds a reference to the original class - * and creates a mutable clone for the original class if needed. + * and allocates a mutable clone for the original class if needed. * @param immutableClass The class to proxy * @param originalIndex The original index of the class in the list of classes */ @@ -19,9 +19,10 @@ class ClassProxy( internal lateinit var mutatedClass: MutableClass /** - * Creates and returns a mutable clone of the original class. + * Allocates and returns a mutable clone of the original class. * A patch should always use the original immutable class reference * to avoid unnecessary allocations for the mutable class. + * @return A mutable clone of the original class. */ fun resolve(): MutableClass { if (!proxyUsed) { diff --git a/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt b/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt index b06ee78..4684565 100644 --- a/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt +++ b/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt @@ -18,7 +18,7 @@ data class SignatureResolverResult( /** * Returns the **mutable** method by the [resolvedMethodName] from the [definingClassProxy]. * - * Please note, this method creates a [ClassProxy]. + * Please note, this method allocates a [ClassProxy]. * Use [immutableMethod] where possible. */ val method