Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / java / app / tokenring / Main.java
index 2448865..4ccfafd 100644 (file)
@@ -1,13 +1,11 @@
-/* Copyright (c) 2016. The SimGrid Team. All rights reserved.               */
+/* Copyright (c) 2016-2019. 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. */
 
 package app.tokenring;
 import org.simgrid.msg.Host;
-import org.simgrid.msg.HostNotFoundException;
 import org.simgrid.msg.Msg;
-import org.simgrid.msg.NativeException;
 import org.simgrid.msg.Process;
 
 class Main {
@@ -16,7 +14,7 @@ class Main {
                throw new IllegalAccessError("Utility class");
        }
 
-       public static void main(String[] args) throws HostNotFoundException, NativeException {
+       public static void main(String[] args) {
                Msg.init(args);
                
                String platform = "../platforms/small_platform.xml";
@@ -31,7 +29,5 @@ class Main {
                }
                Msg.info("Number of hosts '"+hosts.length+"'");
                Msg.run();
-               
-               Msg.info("Simulation time "+Msg.getClock());
        }
 }