Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
java: kill obscure NativeException
[simgrid.git] / examples / java / app / pingpong / Main.java
index 3352474..ed8f2a7 100644 (file)
@@ -5,12 +5,15 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 package app.pingpong;
-import org.simgrid.msg.Msg;
 import org.simgrid.msg.HostNotFoundException;
-import org.simgrid.msg.NativeException;
+import org.simgrid.msg.Msg;
  
 class Main {
-  public static void main(String[] args) throws HostNotFoundException,NativeException{
+  private Main() {
+    throw new IllegalAccessError("Utility class");
+  }
+
+  public static void main(String[] args) throws HostNotFoundException {
     Msg.init(args);
     if(args.length < 1) {
       Msg.info("Usage   : Main platform_file");