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/native/java_lang_Class.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/native/java_lang_Class.cc') diff --git a/runtime/native/java_lang_Class.cc b/runtime/native/java_lang_Class.cc index 14d284e003..19774811bc 100644 --- a/runtime/native/java_lang_Class.cc +++ b/runtime/native/java_lang_Class.cc @@ -653,7 +653,8 @@ static jobject Class_newInstance(JNIEnv* env, jobject javaThis) { } } auto* constructor = klass->GetDeclaredConstructor( - soa.Self(), NullHandle>()); + soa.Self(), + ScopedNullHandle>()); if (UNLIKELY(constructor == nullptr)) { soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", "%s has no zero argument constructor", -- cgit v1.2.3-59-g8ed1b