test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp
changeset 52642 9cfc8b0c45fd
parent 52081 ca7ddf0a1d47
child 55481 e17c9a93b505
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp	Wed Nov 21 18:44:11 2018 +0000
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp	Wed Nov 21 10:46:45 2018 -0800
@@ -108,7 +108,8 @@
     if (jni->IsSameObject(thread, thr) &&
             jni->IsSameObject(object_M, obj)) {
 
-        if (!(line = findLineNumber(jvmti, thread))) {
+        line = findLineNumber(jvmti, thread);
+        if (!line) {
             nsk_jvmti_setFailStatus();
             NSK_COMPLAIN2("MonitorContendedEnter event: thread=%p, object=%p\n",
                 thr, obj);
@@ -152,7 +153,8 @@
     if (jni->IsSameObject(thread, thr) &&
             jni->IsSameObject(object_M, obj)) {
 
-        if (!(line = findLineNumber(jvmti, thread))) {
+        line = findLineNumber(jvmti, thread);
+        if (!line) {
             nsk_jvmti_setFailStatus();
             NSK_COMPLAIN2("MonitorContendedEntered event: thread=%p, object=%p\n",
                 thr, obj);