Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar don't like fields nor parameters ending with a _, so don't do it
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 18 Feb 2018 16:45:33 +0000 (17:45 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 18 Feb 2018 20:42:20 +0000 (21:42 +0100)
Plus, inform sonar that SimGrid 3.18 was released since a while

doc/doxygen/inside_release.doc
sonar-project.properties
src/bindings/java/org/simgrid/msg/Process.java

index 49b0e20..d96ea36 100644 (file)
@@ -112,7 +112,7 @@ the settings icon of the release you want to change.
     - libsimgrid3.XY conflicts with libsimgrid3.XX because of smpimain
 - Update the simgrid/package.py for spack: https://gitlab.inria.fr/solverstack/spack-repo
 - Create the template for the next release in ChangeLog and NEWS files
-- Change the release number in CMakeLists.txt
+- Change the release number in CMakeLists.txt and sonar-project.properties
 - Deal with deprecations:
   - Introduce the XBT_ATTRIB_DEPRECATED_v??? macro for the next release.
   - Kill the one for the current release and remove all code that were
index 1d43b05..9e03b33 100644 (file)
@@ -3,7 +3,7 @@
 
 sonar.projectKey=simgrid
 sonar.projectName=SimGrid
-sonar.projectVersion=3.16
+sonar.projectVersion=3.19
 
 sonar.links.homepage=http://simgrid.org
 sonar.links.issue=https://github.com/simgrid/simgrid/issues
index fc4d205..7dc38c9 100644 (file)
@@ -60,7 +60,7 @@ public abstract class Process implements Runnable {
        private Host host = null;
 
        /** The arguments of the method function of the process. */
-       private ArrayList<String> args_ = new ArrayList<>();
+       private ArrayList<String> args = new ArrayList<>();
 
        /**
         * Constructs a new process from the name of a host and his name. The method
@@ -109,7 +109,7 @@ public abstract class Process implements Runnable {
         * @param name                  The name of the process.
         * @param args                  The arguments of main method of the process.
         */     
-       public Process(Host host, String name, String[]args) 
+       public Process(Host host, String name, String[]argsParam
        {
                if (host == null)
                        throw new IllegalArgumentException("Cannot create a process on the null host");
@@ -119,9 +119,9 @@ public abstract class Process implements Runnable {
                this.host = host;
                this.name = name;
 
-               this.args_ = new ArrayList<>();
-               if (null != args)
-                       this.args_.addAll(Arrays.asList(args));
+               this.args = new ArrayList<>();
+               if (null != argsParam)
+                       this.args.addAll(Arrays.asList(argsParam));
        }
        /**
         * Constructs a new process from a host and his name, the arguments of here method function are
@@ -295,15 +295,11 @@ public abstract class Process implements Runnable {
        @Override
        public void run() {
 
-               String[] args = null;      /* do not fill it before the signal or this.args will be empty */
-
                try {
-                       args = new String[this.args_.size()];
-                       if (!this.args_.isEmpty()) {
-                               this.args_.toArray(args);
-                       }
+                       String[] argsArray = new String[this.args.size()];
+                       this.args.toArray(argsArray);
 
-                       this.main(args);
+                       this.main(argsArray);
                }
                catch(MsgException e) {
                        e.printStackTrace();