Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
today is doomsday: platform.xml is sacrificed for the greater good
[simgrid.git] / examples / java / app / pingpong / Main.java
index 3352474..d69dcec 100644 (file)
@@ -10,7 +10,11 @@ import org.simgrid.msg.HostNotFoundException;
 import org.simgrid.msg.NativeException;
  
 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, NativeException{
     Msg.init(args);
     if(args.length < 1) {
       Msg.info("Usage   : Main platform_file");