mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 09:08:04 +01:00
style: reformat code
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
7d38bb0baa
commit
8daf877fac
2 changed files with 10 additions and 6 deletions
|
@ -21,9 +21,10 @@ data class SignatureResolverResult(
|
||||||
* Please note, this method creates a [ClassProxy].
|
* Please note, this method creates a [ClassProxy].
|
||||||
* Use [immutableMethod] where possible.
|
* Use [immutableMethod] where possible.
|
||||||
*/
|
*/
|
||||||
val method get() = definingClassProxy.resolve().methods.first {
|
val method
|
||||||
it.name == resolvedMethodName
|
get() = definingClassProxy.resolve().methods.first {
|
||||||
}
|
it.name == resolvedMethodName
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the **immutable** method by the [resolvedMethodName] from the [definingClassProxy].
|
* Returns the **immutable** method by the [resolvedMethodName] from the [definingClassProxy].
|
||||||
|
@ -32,8 +33,8 @@ data class SignatureResolverResult(
|
||||||
*/
|
*/
|
||||||
val immutableMethod: Method
|
val immutableMethod: Method
|
||||||
get() = definingClassProxy.immutableClass.methods.first {
|
get() = definingClassProxy.immutableClass.methods.first {
|
||||||
it.name == resolvedMethodName
|
it.name == resolvedMethodName
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method.
|
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method.
|
||||||
fun findParentMethod(signature: MethodSignature): SignatureResolverResult? {
|
fun findParentMethod(signature: MethodSignature): SignatureResolverResult? {
|
||||||
|
|
|
@ -79,7 +79,10 @@ internal class SignatureResolver(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun compareParameterTypes(signature: Iterable<String>, original: MutableList<out CharSequence>): Boolean {
|
private fun compareParameterTypes(
|
||||||
|
signature: Iterable<String>,
|
||||||
|
original: MutableList<out CharSequence>
|
||||||
|
): Boolean {
|
||||||
return signature.count() != original.size || !(signature.all { a -> original.any { it.startsWith(a) } })
|
return signature.count() != original.size || !(signature.all { a -> original.any { it.startsWith(a) } })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue