Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / examples / java / app / masterworker / Main.java
index cc24eed..d252ee4 100644 (file)
@@ -9,16 +9,15 @@ package app.masterworker;
 import java.io.File;
 
 import org.simgrid.msg.Msg;
-import org.simgrid.msg.NativeException;
 
 class Main {
   public static final int TASK_COMP_SIZE = 10000000;
   public static final int TASK_COMM_SIZE = 10000000;
-  /* This only contains the launcher. If you do nothing more than than you can run java simgrid.msg.Msg
-   * which also contains such a launcher
-   */
+  private Main() {
+    throw new IllegalAccessError("Utility class");
+  }
 
-  public static void main(String[] args) throws NativeException {
+  public static void main(String[] args) {
     /* initialize the MSG simulation. Must be done before anything else (even logging). */
     Msg.init(args);