Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a few smells in java
[simgrid.git] / examples / java / app / bittorrent / Main.java
index 7443a7e..8c7fb2c 100644 (file)
@@ -9,12 +9,16 @@ package app.bittorrent;
 import org.simgrid.msg.Msg;
 import org.simgrid.msg.MsgException;
 
-public class Main{
+class Main{
+  private Main() {
+    throw new IllegalAccessError("Utility class");
+  }
+
   public static void main(String[] args) throws MsgException {
     Msg.init(args);
     if(args.length < 2) {
       Msg.info("Usage   : Bittorrent platform_file deployment_file");
-      Msg.info("example : Bittorrent ../platforms/platform.xml bittorrent.xml");
+      Msg.info("example : Bittorrent ../platforms/cluster.xml bittorrent.xml");
       System.exit(1);
     }
 
@@ -23,6 +27,6 @@ public class Main{
     Msg.deployApplication(args[1]);
 
     /*  execute the simulation. */
-        Msg.run();
+    Msg.run();
   }
 }