diff --git a/src/java/Object.hxx b/src/java/Object.hxx index 391afe6cf..228657ea2 100644 --- a/src/java/Object.hxx +++ b/src/java/Object.hxx @@ -41,19 +41,9 @@ namespace Java { /** * Wrapper for a local "jobject" reference. */ -typedef LocalRef LocalObject; +using LocalObject = LocalRef; -class GlobalObject : public GlobalRef { -public: - /** - * Constructs an uninitialized object. The method - * set() must be called before it is destructed. - */ - GlobalObject() = default; - - GlobalObject(JNIEnv *env, jobject obj) noexcept - :GlobalRef(env, obj) {} -}; +using GlobalObject = GlobalRef; /** * Utilities for java.net.Object.