diff options
author | Vladimir Marko <vmarko@google.com> | 2018-05-22 16:26:43 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2018-05-23 15:16:45 +0100 |
commit | e9987b0831403858d95bdd7a5ef9e56665a9702d (patch) | |
tree | 3950da94b73665a52eb5e2b9c5aecc8c92145f13 /runtime/mirror/method_type_test.cc | |
parent | 6ec2a1bf1cbecf17546df780dd0ad769042e1874 (diff) | |
download | art-e9987b0831403858d95bdd7a5ef9e56665a9702d.tar.gz art-e9987b0831403858d95bdd7a5ef9e56665a9702d.tar.bz2 art-e9987b0831403858d95bdd7a5ef9e56665a9702d.zip |
ObjPtr<>-ify tests using ClassLinker::FindClass().
ClassLinker::FindClass() returns a non-ObjPtr<> reference
but it has a lot of uses, so we shall change the uses in
a few steps. This change deals with several tests.
Test: Rely on TreeHugger.
Bug: 31113334
Change-Id: Ib75e20e7ebaff01fb607a09f96675f8cf397ae52
Diffstat (limited to 'runtime/mirror/method_type_test.cc')
-rw-r--r-- | runtime/mirror/method_type_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/method_type_test.cc b/runtime/mirror/method_type_test.cc index a361772c58..16bfc73e04 100644 --- a/runtime/mirror/method_type_test.cc +++ b/runtime/mirror/method_type_test.cc @@ -54,7 +54,7 @@ static mirror::MethodType* CreateMethodType(const std::string& return_type, CHECK(return_clazz != nullptr); ObjPtr<mirror::Class> class_type = mirror::Class::GetJavaLangClass(); - mirror::Class* class_array_type = class_linker->FindArrayClass(self, &class_type); + ObjPtr<mirror::Class> class_array_type = class_linker->FindArrayClass(self, &class_type); Handle<mirror::ObjectArray<mirror::Class>> param_classes = hs.NewHandle( mirror::ObjectArray<mirror::Class>::Alloc(self, class_array_type, param_types.size())); |