summaryrefslogtreecommitdiff
path: root/runtime/hidden_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/hidden_api.cc')
-rw-r--r--runtime/hidden_api.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/hidden_api.cc b/runtime/hidden_api.cc
index ba317c872d..315eb898cb 100644
--- a/runtime/hidden_api.cc
+++ b/runtime/hidden_api.cc
@@ -432,9 +432,7 @@ void MemberSignature::NotifyHiddenApiListener(AccessMethod access_method) {
CHECK(signature_str != nullptr);
// Call through to Consumer.accept(String memberSignature);
- ArtMethod* accept_method = consumer_object->GetClass()->FindVirtualMethodForInterface(
- WellKnownClasses::java_util_function_Consumer_accept, kRuntimePointerSize);
- accept_method->InvokeInstance<'V', 'L'>(
+ WellKnownClasses::java_util_function_Consumer_accept->InvokeInterface<'V', 'L'>(
soa.Self(), consumer_object.Get(), signature_str.Get());
}
}