mirror of
https://github.com/revanced/smali.git
synced 2025-05-21 16:37:04 +02:00
Factor out repeated calls to getVtable() in getMethodByVtableIndex
This commit is contained in:
parent
86112a840f
commit
a7f2135b2f
@ -346,10 +346,11 @@ public class ClassProto implements TypeProto {
|
||||
@Override
|
||||
@Nullable
|
||||
public MethodReference getMethodByVtableIndex(int vtableIndex) {
|
||||
if (vtableIndex < 0 || vtableIndex >= getVtable().length) {
|
||||
Method[] vtable = getVtable();
|
||||
if (vtableIndex < 0 || vtableIndex >= vtable.length) {
|
||||
return null;
|
||||
}
|
||||
return getVtable()[vtableIndex];
|
||||
return vtable[vtableIndex];
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
Loading…
x
Reference in New Issue
Block a user