From 917fe549b0c29bda0f0485e64f1e8c80ff603aba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Jul 2021 18:02:46 +0200 Subject: [PATCH] java/Object: use type aliases --- src/java/Object.hxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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.