Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless duplicated code
[simgrid.git] / src / bindings / java / org / simgrid / msg / Process.java
index 433259f..3d36996 100644 (file)
@@ -163,18 +163,7 @@ public abstract class Process implements Runnable {
         *
         */
        public Process(Host host, String name, String[]args, double startTime, double killTime) {
-               this();
-               this.host = host;
-               if (host == null)
-                       throw new NullPointerException("Process name cannot be NULL");
-               if (name == null)
-                       throw new NullPointerException("Process name cannot be NULL");
-               this.name = name;
-
-               this.args = new ArrayList<>();
-               if (null != args)
-                       this.args.addAll(Arrays.asList(args));
-
+               this(host, name, args);
                this.startTime = startTime;
                this.killTime = killTime;
        }