From 9865bde5d822f56c4732214c2005dfcaa41f94cf Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Mon, 21 Dec 2015 09:58:16 -0800 Subject: Rename NullHandle to ScopedNullHandle This makes it clearer that is invalid to do things like: Handle h = ScopedNullHandle(); Bug: 26233305 Change-Id: I6d8f54eae01ec2e901cb7043afa853ea77db79fe --- runtime/class_linker_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/class_linker_test.cc') diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index 387ac0aee2..59a43ee206 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -855,7 +855,7 @@ TEST_F(ClassLinkerTest, ValidateBoxedTypes) { // Validate that the "value" field is always the 0th field in each of java.lang's box classes. // This lets UnboxPrimitive avoid searching for the field by name at runtime. ScopedObjectAccess soa(Thread::Current()); - NullHandle class_loader; + ScopedNullHandle class_loader; mirror::Class* c; c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Boolean;", class_loader); EXPECT_STREQ("value", c->GetIFieldsPtr()->At(0).GetName()); @@ -1101,7 +1101,7 @@ TEST_F(ClassLinkerTest, ClassRootDescriptors) { TEST_F(ClassLinkerTest, ValidatePredefinedClassSizes) { ScopedObjectAccess soa(Thread::Current()); - NullHandle class_loader; + ScopedNullHandle class_loader; mirror::Class* c; c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Class;", class_loader); -- cgit v1.2.3-59-g8ed1b