X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..d33e7a563a884247bff85406dcc589a70a162e79:/examples/java/dht/chord/Node.java diff --git a/examples/java/dht/chord/Node.java b/examples/java/dht/chord/Node.java index 1817ab36cf..f29ead5690 100644 --- a/examples/java/dht/chord/Node.java +++ b/examples/java/dht/chord/Node.java @@ -58,8 +58,8 @@ public class Node extends Process { create(); joinSuccess = true; } else { - int knownId = Integer.valueOf(args[1]); - deadline = Integer.valueOf(args[3]); + int knownId = Integer.parseInt(args[1]); + deadline = Integer.parseInt(args[3]); Msg.debug("Hey! Let's join the system with the id " + id + "."); joinSuccess = join(knownId); @@ -202,7 +202,6 @@ public class Node extends Process { } catch (MsgException e) { commReceive = null; - stop = true; } } catch (MsgException e) { @@ -330,9 +329,9 @@ public class Node extends Process { // Performs a find successor request to a random id. private void randomLookup() { - int id = 1337; - //Msg.info("Making a lookup request for id " + id); - findSuccessor(id); + int dest = 1337; + //Msg.info("Making a lookup request for id " + dest); + findSuccessor(dest); } /**