Skip to content

Commit

Permalink
JNI: remove tech-preview tag from documented APIs
Browse files Browse the repository at this point in the history
Change-Id: I6493f53c747df16d9b54710627927e60f43edec1
Reviewed-by: Assam Boudjelthia <[email protected]>
  • Loading branch information
vohi committed May 31, 2024
1 parent 93ae58f commit 7afff8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/corelib/kernel/qjnienvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class Q_CORE_EXPORT QJniEnvironment
, std::enable_if_t<QtJniTypes::isObjectType<Class>(), bool> = true
#endif
>
QT_TECH_PREVIEW_API
bool registerNativeMethods(std::initializer_list<JNINativeMethod> methods)
{
return registerNativeMethods(QtJniTypes::Traits<Class>::className().data(), methods);
Expand Down
5 changes: 0 additions & 5 deletions src/corelib/kernel/qjnitypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ struct QtJniTypes::Traits<QtJniTypes::Type> { \
} \
}; \

// QT_TECH_PREVIEW_API
#define Q_DECLARE_JNI_CLASS(Type, Signature) \
Q_DECLARE_JNI_TYPE_HELPER(Type) \
template<> \
Expand Down Expand Up @@ -178,7 +177,6 @@ va_##Method(JNIEnv *env, jclass thiz, ...)
}, argTuple); \
} \

// QT_TECH_PREVIEW_API
#define Q_DECLARE_JNI_NATIVE_METHOD(...) \
QT_OVERLOADED_MACRO(QT_DECLARE_JNI_NATIVE_METHOD, __VA_ARGS__) \

Expand All @@ -196,10 +194,8 @@ static const JNINativeMethod Method##_method = { \
#define QT_DECLARE_JNI_NATIVE_METHOD_1(Method) \
QT_DECLARE_JNI_NATIVE_METHOD_2(Method, Method) \

// QT_TECH_PREVIEW_API
#define Q_JNI_NATIVE_METHOD(Method) QtJniMethods::Method##_method

// QT_TECH_PREVIEW_API
#define Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(...) \
QT_OVERLOADED_MACRO(QT_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE, __VA_ARGS__) \

Expand All @@ -213,7 +209,6 @@ static const JNINativeMethod Method##_method = { \
#define QT_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE_1(Method) \
QT_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE_2(Method, Method) \

// QT_TECH_PREVIEW_API
#define Q_JNI_NATIVE_SCOPED_METHOD(Method, Scope) Scope::Method##_method

QT_END_NAMESPACE
Expand Down

0 comments on commit 7afff8c

Please sign in to comment.