Skip to content

Commit

Permalink
docs: fix wrong wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas authored and oSumAtrIX committed Jun 5, 2022
1 parent 01bfbd6 commit 9889ec9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/app/revanced/patcher/proxy/ClassProxy.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9889ec9

Please sign in to comment.