summaryrefslogtreecommitdiff
path: root/platform/android/src/gson/json_element.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/gson/json_element.hpp')
-rw-r--r--platform/android/src/gson/json_element.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/android/src/gson/json_element.hpp b/platform/android/src/gson/json_element.hpp
index 384459dc41..e3b8a0268d 100644
--- a/platform/android/src/gson/json_element.hpp
+++ b/platform/android/src/gson/json_element.hpp
@@ -8,12 +8,13 @@ namespace mbgl {
namespace android {
namespace gson {
-class JsonElement : public jni::ObjectTag {
+class JsonElement {
public:
+ using SuperTag = jni::ObjectTag;
static constexpr auto Name() { return "com/google/gson/JsonElement"; };
- static jni::Object<JsonElement> New(jni::JNIEnv&, const mbgl::Value&);
- static mbgl::Value convert(JNIEnv&, jni::Object<JsonElement>);
+ static jni::Local<jni::Object<JsonElement>> New(jni::JNIEnv&, const mbgl::Value&);
+ static mbgl::Value convert(JNIEnv&, const jni::Object<JsonElement>&);
static void registerNative(jni::JNIEnv&);
};