< prev index next >

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

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

@@ -71,11 +71,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("Agent:: Breakpoint set \n");
                 } else {
                     nsk_printf("Agent:: ***ERROR OCCURED ... in SET BREAK POINT ERROR \n");
                 }
             } else {

@@ -96,18 +96,18 @@
 
     threadClass = jni->FindClass(SEARCH_NAME);
     nsk_printf(" %d..",redefineNumber);
     nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName, sizeof(fileName)/sizeof(char));
 
-    if( nsk_jvmti_redefineClass(jvmti, threadClass,fileName) == NSK_TRUE ) {
+    if(nsk_jvmti_redefineClass(jvmti, threadClass,fileName) == NSK_TRUE) {
         nsk_printf("Agent:: Redefined..\n");
     } else {
         nsk_printf(" Failed to redefine..\n");
         return;
     }
     err=jvmti->SuspendThread(thread);
-    if ( err ==  JVMTI_ERROR_NONE ) {
+    if (err ==  JVMTI_ERROR_NONE) {
         nsk_printf("Agent:: Succeded in suspending..\n");
     } else {
         nsk_printf(" ## Error occured %s \n",TranslateError(err));
     }
 }

@@ -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) == JNI_OK ) {
+    if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP,thread) == JNI_OK) {
         nsk_printf(" ....   Enabled..\n");
     }
     return;
 }
 

@@ -138,17 +138,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;

@@ -166,14 +166,14 @@
         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,
+        if ((nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_LOAD,
                         NULL) == NSK_TRUE) &&
                 (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_BREAKPOINT,
-                                              NULL) == NSK_TRUE ) ) {
+                                              NULL) == NSK_TRUE)) {
             nsk_printf("Agent :: NOTIFICATIONS ARE ENABLED \n");
         } else {
             nsk_printf(" Error in Eanableing Notifications..");
         }
     }

@@ -189,11 +189,11 @@
     jboolean retvalue;
     jint state;
     nsk_printf("Agent:: POPING THE FRAME....\n");
     retvalue = JNI_FALSE;
     jvmti->GetThreadState(thread, &state);
-    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 >