Commit 917fe549 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

java/Object: use type aliases

parent 8e430e55
......@@ -41,19 +41,9 @@ namespace Java {
/**
* Wrapper for a local "jobject" reference.
*/
typedef LocalRef<jobject> LocalObject;
using LocalObject = LocalRef<jobject>;
class GlobalObject : public GlobalRef<jobject> {
public:
/**
* Constructs an uninitialized object. The method
* set() must be called before it is destructed.
*/
GlobalObject() = default;
GlobalObject(JNIEnv *env, jobject obj) noexcept
:GlobalRef<jobject>(env, obj) {}
};
using GlobalObject = GlobalRef<jobject>;
/**
* Utilities for java.net.Object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment