From 68ed06b17b180ba7486b25cd6dd0f12b11cdb57f Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Fri, 26 Mar 2021 10:48:49 +0200 Subject: Rename QJniEnvironment exceptionCheckAndClear to checkAndClearExceptions Address feedback from header view. Task-number: QTBUG-90211 Change-Id: Iad2b609598b16f66fd6ab09484fe6e6899981263 Reviewed-by: Volker Hilsheimer (cherry picked from commit b9f27335e7462a15ac642841bb6d86ebebb349f9) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/corelib') diff --git a/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp b/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp index d47a9ecd57..2cd0b7ea76 100644 --- a/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp +++ b/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp @@ -71,11 +71,11 @@ void tst_QJniEnvironment::jniEnv() env->ExceptionClear(); QVERIFY(env->FindClass("java/lang/Object")); - QVERIFY(!QJniEnvironment::exceptionCheckAndClear(env)); + QVERIFY(!QJniEnvironment::checkAndClearExceptions(env)); // try to find a nonexistent class QVERIFY(!env->FindClass("this/doesnt/Exist")); - QVERIFY(QJniEnvironment::exceptionCheckAndClear(env)); + QVERIFY(QJniEnvironment::checkAndClearExceptions(env)); // try to find an existing class with QJniEnvironment QJniEnvironment env; @@ -86,7 +86,7 @@ void tst_QJniEnvironment::jniEnv() // clear exception with member function QVERIFY(!env->FindClass("this/doesnt/Exist")); - QVERIFY(env.exceptionCheckAndClear()); + QVERIFY(env.checkAndClearExceptions()); } // The env does not detach automatically, even if it goes out of scope. The only way it can -- cgit v1.2.3