Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / java / app / centralizedmutex / Main.java
index 7a8a7ac..6f54bfc 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2012-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. */
@@ -7,10 +6,13 @@
 package app.centralizedmutex;
 
 import org.simgrid.msg.Msg;
-import org.simgrid.msg.NativeException;
 
-public class Main {
-  public static void main(String[] args) throws NativeException {
+class Main {
+  private Main() {
+    throw new IllegalAccessError("Utility class");
+  }
+
+  public static void main(String[] args) {
     Msg.init(args);
 
     String platf  = args.length > 1 ? args[0] : "../platforms/small_platform.xml";