diff options
Diffstat (limited to 'platform/android/src/gson/json_object.hpp')
-rw-r--r-- | platform/android/src/gson/json_object.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/android/src/gson/json_object.hpp b/platform/android/src/gson/json_object.hpp index 256161f0d9..b8916f8ae1 100644 --- a/platform/android/src/gson/json_object.hpp +++ b/platform/android/src/gson/json_object.hpp @@ -8,12 +8,13 @@ namespace mbgl { namespace android { namespace gson { -class JsonObject : public JsonElement { +class JsonObject { public: + using SuperTag = JsonElement; static constexpr auto Name() { return "com/google/gson/JsonObject"; }; - static jni::Object<JsonObject> New(jni::JNIEnv&, const mbgl::PropertyMap&); - static mbgl::PropertyMap convert(JNIEnv&, jni::Object<JsonObject>); + static jni::Local<jni::Object<JsonObject>> New(jni::JNIEnv&, const mbgl::PropertyMap&); + static mbgl::PropertyMap convert(JNIEnv&, const jni::Object<JsonObject>&); static void registerNative(jni::JNIEnv&); }; |