summaryrefslogtreecommitdiff
path: root/runtime/art_method-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/art_method-inl.h')
-rw-r--r--runtime/art_method-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/art_method-inl.h b/runtime/art_method-inl.h
index e957d6a1c2..024272a10d 100644
--- a/runtime/art_method-inl.h
+++ b/runtime/art_method-inl.h
@@ -451,7 +451,7 @@ inline bool ArtMethod::NameEquals(ObjPtr<mirror::String> name) {
const dex::MethodId& method_id = dex_file->GetMethodId(GetDexMethodIndex());
const dex::StringIndex name_idx = method_id.name_idx_;
uint32_t utf16_length;
- const char* utf8_name = dex_file->StringDataAndUtf16LengthByIdx(name_idx, &utf16_length);
+ const char* utf8_name = dex_file->GetStringDataAndUtf16Length(name_idx, &utf16_length);
return dchecked_integral_cast<uint32_t>(name->GetLength()) == utf16_length &&
name->Equals(utf8_name);
}