Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 16 Feb 2017 09:54:11 +0000 (10:54 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 16 Feb 2017 09:54:11 +0000 (10:54 +0100)
src/bindings/java/jmsg_process.cpp
src/bindings/java/org/simgrid/msg/Process.java

index bcd0d07..8488ee2 100644 (file)
@@ -172,12 +172,12 @@ JNIEXPORT jint JNICALL Java_org_simgrid_msg_Process_killAll(JNIEnv * env, jclass
   return (jint) MSG_process_killall((int) jresetPID);
 }
 
   return (jint) MSG_process_killall((int) jresetPID);
 }
 
-JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Process_fromPID(JNIEnv * env, jclass cls, jint PID)
+JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Process_fromPID(JNIEnv * env, jclass cls, jint pid)
 {
 {
-  msg_process_t process = MSG_process_from_PID(PID);
+  msg_process_t process = MSG_process_from_PID(pid);
 
   if (!process) {
 
   if (!process) {
-    jxbt_throw_process_not_found(env, bprintf("PID = %d",(int) PID));
+    jxbt_throw_process_not_found(env, bprintf("PID = %d",static_cast<int>(pid)));
     return nullptr;
   }
 
     return nullptr;
   }
 
index 4f29954..04b5e03 100644 (file)
@@ -226,11 +226,11 @@ public abstract class Process implements Runnable {
        /**
         * This static method gets a process from a PID.
         *
        /**
         * This static method gets a process from a PID.
         *
-        * @param PID                   The process identifier of the process to get.
+        * @param pid                   The process identifier of the process to get.
         *
         * @return                              The process with the specified PID.
         */ 
         *
         * @return                              The process with the specified PID.
         */ 
-       public static native Process fromPID(int PID);
+       public static native Process fromPID(int pid);
        /**
         * This method returns the PID of the process.
         *
        /**
         * This method returns the PID of the process.
         *