Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get ride of some supurious warnings
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 19 Oct 2011 11:31:29 +0000 (13:31 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 19 Oct 2011 11:31:29 +0000 (13:31 +0200)
examples/master_slave_bypass/Master.java
examples/master_slave_bypass/MsBypass.java

index 393d896..1b06544 100644 (file)
@@ -26,7 +26,7 @@ public class Master extends Process {
        //Create a slave on host "alice"
        try {
                        Msg.info("Create process on host 'alice'");
        //Create a slave on host "alice"
        try {
                        Msg.info("Create process on host 'alice'");
-               Slave process2 = new Slave("alice","process2");
+               new Slave("alice","process2");
            }
        catch (MsgException e){
                        System.out.println("Process2!");
            }
        catch (MsgException e){
                        System.out.println("Process2!");
index cc95c83..1ddbc1c 100644 (file)
@@ -24,9 +24,9 @@ public class MsBypass {
     Msg.init(args);
     Msg.createEnvironment(args[0]);
 
     Msg.init(args);
     Msg.createEnvironment(args[0]);
 
-    /* bypass deploymemt */
+    /* bypass deployment */
     try {
     try {
-    Master process1 = new Master("bob","process1");
+       new Master("bob","process1");
     }
     catch (MsgException e){
        System.out.println("Create processes failed!");
     }
     catch (MsgException e){
        System.out.println("Create processes failed!");