mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-30 05:40:13 +02:00
docs: fix wrong wording
This commit is contained in:
parent
01bfbd656e
commit
9889ec9d03
@ -7,7 +7,7 @@ import org.jf.dexlib2.iface.ClassDef
|
|||||||
* A proxy class for a [ClassDef].
|
* A proxy class for a [ClassDef].
|
||||||
*
|
*
|
||||||
* A class proxy simply holds a reference to the original class
|
* 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 immutableClass The class to proxy
|
||||||
* @param originalIndex The original index of the class in the list of classes
|
* @param originalIndex The original index of the class in the list of classes
|
||||||
*/
|
*/
|
||||||
@ -19,9 +19,10 @@ class ClassProxy(
|
|||||||
internal lateinit var mutatedClass: MutableClass
|
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
|
* A patch should always use the original immutable class reference
|
||||||
* to avoid unnecessary allocations for the mutable class.
|
* to avoid unnecessary allocations for the mutable class.
|
||||||
|
* @return A mutable clone of the original class.
|
||||||
*/
|
*/
|
||||||
fun resolve(): MutableClass {
|
fun resolve(): MutableClass {
|
||||||
if (!proxyUsed) {
|
if (!proxyUsed) {
|
||||||
|
@ -18,7 +18,7 @@ data class SignatureResolverResult(
|
|||||||
/**
|
/**
|
||||||
* Returns the **mutable** method by the [resolvedMethodName] from the [definingClassProxy].
|
* 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.
|
* Use [immutableMethod] where possible.
|
||||||
*/
|
*/
|
||||||
val method
|
val method
|
||||||
|
Loading…
x
Reference in New Issue
Block a user