Remove anonymous namespaces.
No one likes them and we're pretty inconsistent at using them. We're
much better with 'static'.
Change-Id: I65eeffd0fb60633edca30923af0caedb06a0105d
diff --git a/src/java_lang_reflect_Constructor.cc b/src/java_lang_reflect_Constructor.cc
index 36481f7..c908bb7 100644
--- a/src/java_lang_reflect_Constructor.cc
+++ b/src/java_lang_reflect_Constructor.cc
@@ -24,8 +24,6 @@
namespace art {
-namespace {
-
/*
* We get here through Constructor.newInstance(). The Constructor object
* would not be available if the constructor weren't public (per the
@@ -33,7 +31,7 @@
* check. We can also safely assume the constructor isn't associated
* with an interface, array, or primitive class.
*/
-jobject Constructor_newInstance(JNIEnv* env, jobject javaMethod, jobjectArray javaArgs) {
+static jobject Constructor_newInstance(JNIEnv* env, jobject javaMethod, jobjectArray javaArgs) {
ScopedThreadStateChange tsc(Thread::Current(), Thread::kRunnable);
Method* m = Decode<Object*>(env, javaMethod)->AsMethod();
Class* c = m->GetDeclaringClass();
@@ -64,8 +62,6 @@
NATIVE_METHOD(Constructor, newInstance, "([Ljava/lang/Object;)Ljava/lang/Object;"),
};
-} // namespace
-
void register_java_lang_reflect_Constructor(JNIEnv* env) {
jniRegisterNativeMethods(env, "java/lang/reflect/Constructor", gMethods, NELEM(gMethods));
}