test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS302/hs302t004/hs302t004.cpp
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS302/hs302t004/hs302t004.cpp Thu Oct 17 20:27:44 2019 +0100
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS302/hs302t004/hs302t004.cpp Thu Oct 17 20:53:35 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,7 @@
nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName,
sizeof(fileName)/sizeof(char));
nsk_jvmti_disableNotification(jvmti_env, JVMTI_EVENT_CLASS_PREPARE, NULL);
- if (nsk_jvmti_redefineClass(jvmti_env, klass,fileName) == NSK_TRUE) {
+ if (nsk_jvmti_redefineClass(jvmti_env, klass,fileName)) {
nsk_printf("Redefine successful ..\n");
} else {
nsk_printf("# error :: Redefine failed..\n");
@@ -73,7 +73,7 @@
} else {
jvmtiCapabilities caps;
jvmtiEventCallbacks eventCallbacks;
- if (nsk_jvmti_parseOptions(options) == NSK_FALSE) {
+ if (!nsk_jvmti_parseOptions(options)) {
nsk_printf("# error agent Failed to parse options \n");
return JNI_ERR;
}
@@ -88,7 +88,7 @@
nsk_printf(" Agent:: Error occured while setting event call back \n");
return JNI_ERR;
}
- if (nsk_jvmti_enableNotification(jvmti, JVMTI_EVENT_CLASS_PREPARE, NULL) == NSK_TRUE) {
+ if (nsk_jvmti_enableNotification(jvmti, JVMTI_EVENT_CLASS_PREPARE, NULL)) {
nsk_printf(" Enabled. noftification..");
} else {
nsk_printf(" Failed to Enable ..");