summaryrefslogtreecommitdiff
path: root/libdexfile/dex/signature.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libdexfile/dex/signature.cc')
-rw-r--r--libdexfile/dex/signature.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdexfile/dex/signature.cc b/libdexfile/dex/signature.cc
index ac004286f2..1ab232dabf 100644
--- a/libdexfile/dex/signature.cc
+++ b/libdexfile/dex/signature.cc
@@ -39,11 +39,11 @@ std::string Signature::ToString() const {
} else {
result += "(";
for (uint32_t i = 0; i < params->Size(); ++i) {
- result += dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_);
+ result += dex_file_->GetTypeDescriptorView(params->GetTypeItem(i).type_idx_);
}
result += ")";
}
- result += dex_file_->StringByTypeIdx(proto_id_->return_type_idx_);
+ result += dex_file_->GetTypeDescriptorView(proto_id_->return_type_idx_);
return result;
}
@@ -69,7 +69,7 @@ bool Signature::operator==(std::string_view rhs) const {
const TypeList* params = dex_file_->GetProtoParameters(*proto_id_);
if (params != nullptr) {
for (uint32_t i = 0; i < params->Size(); ++i) {
- std::string_view param(dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_));
+ std::string_view param = dex_file_->GetTypeDescriptorView(params->GetTypeItem(i).type_idx_);
if (!StartsWith(tail, param)) {
return false;
}
@@ -80,7 +80,7 @@ bool Signature::operator==(std::string_view rhs) const {
return false;
}
tail.remove_prefix(1); // ")";
- return tail == dex_file_->StringByTypeIdx(proto_id_->return_type_idx_);
+ return tail == dex_file_->GetTypeDescriptorView(proto_id_->return_type_idx_);
}
std::ostream& operator<<(std::ostream& os, const Signature& sig) {