Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill trailing whitespaces in tesh files (except when testing tesh or log facility).
[simgrid.git] / src / bindings / java / jmsg_vm.cpp
index 9723d9a..af947a2 100644 (file)
@@ -90,7 +90,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_VM_all(JNIEnv* env, jclass c
 
   for (size_t i = 0; i < host_count; i++) {
     const auto* vm = dynamic_cast<simgrid::s4u::VirtualMachine*>(hosts[i]);
-    if (vm != nullptr && vm->get_state() != simgrid::s4u::VirtualMachine::state::DESTROYED) {
+    if (vm != nullptr && vm->get_state() != simgrid::s4u::VirtualMachine::State::DESTROYED) {
       auto jvm = static_cast<jobject>(vm->extension(JAVA_HOST_LEVEL));
       vms.push_back(jvm);
     }
@@ -152,7 +152,7 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_nativeMigration(JNIEnv* env, jobj
   sg_host_t host = jhost_get_native(env, jhost);
   if (not simgrid::ForcefulKillException::try_n_catch([&vm, &host]() { sg_vm_migrate(vm, host); })) {
     XBT_VERB("Caught exception during migration");
-    jxbt_throw_host_failure(env, "during migration");
+    jxbt_throw_host_failure(env, " during migration");
   }
 }