comparison test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetFieldAccessWatch/setfldw004/setfldw004.cpp @ 53610:9cfc8b0c45fd

8214149: Move out assignments when not using NSK*VERIFY macros Summary: Move out the assignments from ifs Reviewed-by: sspitsyn, cjplummer
author jcbeyler
date Wed, 21 Nov 2018 10:46:45 -0800
parents 1ebe04845112
children 7edc56620d42
comparison
equal deleted inserted replaced
1:5073544a3288 2:b6e8c3ada0d8
74 if (res != JNI_OK || jvmti == NULL) { 74 if (res != JNI_OK || jvmti == NULL) {
75 printf("Wrong result of a valid call to GetEnv !\n"); 75 printf("Wrong result of a valid call to GetEnv !\n");
76 return JNI_ERR; 76 return JNI_ERR;
77 } 77 }
78 78
79 if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) { 79 err = jvmti->GetCapabilities(&caps);
80 if (err != JVMTI_ERROR_NONE) {
80 printf("(GetCapabilities) unexpected error: %s (%d)\n", 81 printf("(GetCapabilities) unexpected error: %s (%d)\n",
81 TranslateError(err), err); 82 TranslateError(err), err);
82 return JNI_ERR; 83 return JNI_ERR;
83 } 84 }
84 85