]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/java/JavaContext.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
automatically determine the core amount
[simgrid.git] / src / bindings / java / JavaContext.cpp
index ad355eb8683ca68351acf396c5ae5a04a9b03149..ff993551c4ebd22cb46c098e783edce1ec5b3b87 100644 (file)
@@ -1,6 +1,6 @@
 /* Context switching within the JVM.                                        */
 
-/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -29,7 +29,7 @@ ContextFactory* java_factory()
 
 JavaContextFactory::JavaContextFactory() : ContextFactory()
 {
-  xbt_assert(xbt_binary_name && strcmp(xbt_binary_name, "java") == 0); // Set by Java_org_simgrid_msg_Msg_init
+  xbt_assert(xbt::binary_name == "java");
 }
 
 JavaContextFactory::~JavaContextFactory()=default;