blob: c076c39c369ad4e66a882e2ea7cb498c85378cd4 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by
// base/android/jni_generator/jni_generator.py
// For
// java/util/HashSet
#ifndef java_util_HashSet_JNI
#define java_util_HashSet_JNI
#include <jni.h>
#include "base/android/jni_generator/jni_generator_helper.h"
#include "base/android/jni_int_wrapper.h"
// Step 1: forward declarations.
namespace {
const char kHashSetClassPath[] = "java/util/HashSet";
// Leaking this jclass as we cannot use LazyInstance from some threads.
base::subtle::AtomicWord g_HashSet_clazz __attribute__((unused)) = 0;
#define HashSet_clazz(env) base::android::LazyGetClass(env, kHashSetClassPath, &g_HashSet_clazz)
} // namespace
namespace JNI_HashSet {
// Step 2: method stubs.
static base::subtle::AtomicWord g_HashSet_dummy = 0;
static void Java_HashSet_dummy(JNIEnv* env, const
base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused));
static void Java_HashSet_dummy(JNIEnv* env, const
base::android::JavaRefOrBare<jobject>& obj) {
CHECK_CLAZZ(env, obj.obj(),
HashSet_clazz(env));
jmethodID method_id =
base::android::MethodID::LazyGet<
base::android::MethodID::TYPE_INSTANCE>(
env, HashSet_clazz(env),
"dummy",
"()V",
&g_HashSet_dummy);
env->CallVoidMethod(obj.obj(),
method_id);
jni_generator::CheckException(env);
}
// Step 3: RegisterNatives.
} // namespace JNI_HashSet
#endif // java_util_HashSet_JNI