Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ValueOf -> parse
[simgrid.git] / examples / java / process / startkilltime / Sleeper.java
index fe1310e..7a30764 100644 (file)
@@ -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.");