< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t001/hs203t001.cpp

Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:

@@ -69,11 +69,11 @@
                 jvmtiError err ;
                 err=jvmti->GetMethodLocation(method, &start, &end);
                 if (err == JVMTI_ERROR_NONE) {
                     nsk_printf("Agent:: NO ERRORS FOUND \n");
                     err= jvmti->SetBreakpoint(method, start);
-                    if ( err == JVMTI_ERROR_NONE) {
+                    if (err == JVMTI_ERROR_NONE) {
                         nsk_printf(" Class Name %s \n", className);
                         nsk_printf("Agent:: Breakpoint set \n");
                     } else {
                         nsk_printf(" ## Error occured %s \n",TranslateError(err));
                     }

@@ -95,11 +95,11 @@
     char fileName[512];
     threadClass = jni->FindClass(SEARCH_NAME);
     nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName,
                     sizeof(fileName)/sizeof(char));
     nsk_printf(" %d..",redefineNumber);
-    if ( nsk_jvmti_redefineClass(jvmti, threadClass, fileName) == NSK_TRUE) {
+    if (nsk_jvmti_redefineClass(jvmti, threadClass, fileName) == NSK_TRUE) {
         nsk_printf("\nMyClass :: Successfully redefined..\n");
     } else {
         nsk_printf("\nMyClass :: Failed to redefine ..\n");
     }
     nsk_printf(" End of REDEFINE CLASS LOADER \n");

@@ -116,11 +116,11 @@
         JNIEnv* jni,
         jthread thread,
         jmethodID method,
         jlocation location) {
     nsk_printf("Agent::... BreakPoint Reached..\n");
-    if ( nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP,thread) == NSK_TRUE ) {
+    if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP,thread) == NSK_TRUE) {
         nsk_printf(" ....   Enabled..\n");
     }
     return;
 }
 

@@ -137,17 +137,17 @@
 #endif
 jint  Agent_Initialize(JavaVM *vm, char *options, void *reserved) {
     jint rc ;
     nsk_printf("Agent:: VM.. Started..\n");
     rc=vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1);
-    if ( rc!= JNI_OK ) {
+    if (rc!= JNI_OK) {
         nsk_printf("Agent:: Could not load JVMTI interface \n");
         return JNI_ERR;
     } else {
         jvmtiCapabilities caps;
         jvmtiEventCallbacks eventCallbacks;
-        if (nsk_jvmti_parseOptions(options) == NSK_FALSE ) {
+        if (nsk_jvmti_parseOptions(options) == NSK_FALSE) {
             nsk_printf("# error agent Failed to parse options \n");
             return JNI_ERR;
         }
         memset(&caps, 0, sizeof(caps));
         caps.can_redefine_classes = 1;

@@ -164,12 +164,12 @@
         rc=jvmti->SetEventCallbacks(&eventCallbacks, sizeof(eventCallbacks));
         if (rc != JVMTI_ERROR_NONE) {
             nsk_printf(" Agent:: Error occured while setting event call back \n");
             return JNI_ERR;
         }
-        if ( (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_LOAD, NULL) == NSK_TRUE ) &&
-                (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_BREAKPOINT,NULL) == NSK_TRUE) ) {
+        if ((nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_LOAD, NULL) == NSK_TRUE) &&
+                (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_BREAKPOINT,NULL) == NSK_TRUE)) {
             nsk_printf("Agent :: NOTIFICATIONS ARE ENABLED \n");
         } else {
             nsk_printf(" Error in Eanableing Notifications..");
         }
     }

@@ -187,11 +187,11 @@
     nsk_printf("Agent:: POPING THE FRAME....\n");
     retvalue = JNI_FALSE;
     nsk_printf(" Here ");
     jvmti->GetThreadState(thread, &state);
     nsk_printf(" Here ");
-    if ( state & JVMTI_THREAD_STATE_SUSPENDED) {
+    if (state & JVMTI_THREAD_STATE_SUSPENDED) {
         err = jvmti->PopFrame(thread);
         if (err == JVMTI_ERROR_NONE) {
             nsk_printf("Agent:: NO Errors poped very well ..\n");
             retvalue = JNI_TRUE;
         } else {
< prev index next >