Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / java / process / startkilltime / Sleeper.java
index fe1310e..1ab7253 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2006-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -18,7 +18,7 @@ public class Sleeper extends Process {
   public void main(String[] args) throws MsgException {
     Msg.info("Hello! I go to sleep.");
     try {
-      waitFor(Integer.valueOf(args[0]).intValue());
+      waitFor(Integer.parseInt(args[0]));
       Msg.info("Done sleeping");
     } catch (MsgException e) {
       Msg.debug("Wait cancelled.");