Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New development version.
[jaceP2P.git] / src / jaceP2P / ListeTask.java
index fbaf60f..701b123 100644 (file)
@@ -2,17 +2,16 @@ package jaceP2P;
 
 import java.util.Vector;
 
-public class ListeTask implements java.io.Serializable, java.lang.Cloneable {
-
-       private static final long serialVersionUID = 1L;
+public class ListeTask implements java.io.Serializable, java.lang.Cloneable 
+{
+       private static final long serialVersionUID = 1L ;
 
        // attributes
-       protected Vector<TaskId> liste = new Vector<TaskId>();
-       protected TaskId task;
+       protected Vector<TaskId> liste = new Vector<TaskId>() ;
+       protected TaskId task ;
 
        // constructor
-       public ListeTask() {
-       };
+       public ListeTask() {} 
 
        @SuppressWarnings("unchecked")
        public synchronized ListeTask clone() {
@@ -36,8 +35,8 @@ public class ListeTask implements java.io.Serializable, java.lang.Cloneable {
                        if (is != -1) {
                                return (TaskId) liste.get(is);
                        } else {
-                               System.out
-                                               .println("There is no task affected to this host stub !!!!! ");
+                               System.err
+                                               .println("There is no task affected to this host stub !");
                                return null;
                        }
                }
@@ -52,7 +51,7 @@ public class ListeTask implements java.io.Serializable, java.lang.Cloneable {
                        if (is != -1) {
                                return (TaskId) liste.get(is);
                        } else {
-                               System.out.println("TaskId of rank=" + rank + " doesn't exist");
+                               System.err.println("TaskId of rank=" + rank + " doesn't exist");
                                viewAll();
                                return null;
                        }