Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make bind atributes private (we don't want users to mess with it)
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Wed, 13 Jun 2012 09:12:17 +0000 (11:12 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Wed, 13 Jun 2012 09:12:17 +0000 (11:12 +0200)
org/simgrid/msg/Comm.java
org/simgrid/msg/File.java
org/simgrid/msg/Host.java
org/simgrid/msg/Process.java
org/simgrid/msg/RngStream.java
org/simgrid/msg/Task.java

index 423371d..a0e2044 100644 (file)
@@ -25,11 +25,11 @@ public class Comm {
         * native C comm. You must never access it, since it is 
         * automatically set.
         */
-       public long bind = 0;
+       private long bind = 0;
        /**
         * Represents the bind for the task object pointer. Don't touch it.
         */
-       public long taskBind = 0;
+       private long taskBind = 0;
        /**
         * Task associated with the comm. Beware, it can be null 
         */
index 0f85eb4..d5af208 100644 (file)
@@ -15,7 +15,7 @@ public class File {
         * native C comm. You must never access it, since it is 
         * automatically set.
         */
-       public long bind = 0;
+       private long bind = 0;
        /**
         * Constructor, opens the file.
         * @param storage is the name where you can find the stream 
index 905596d..28d97cf 100644 (file)
@@ -49,7 +49,7 @@ public class Host {
         *
         * @see                         Host.getByName().
         */ 
-       public long bind;
+       private long bind;
        /**
         * Host name
         */
index 714a7a3..3a658a2 100644 (file)
@@ -54,7 +54,7 @@ public abstract class Process implements Runnable {
         * a native process. Even if this attribute is public you must never
         * access to it. It is set automatically during the build of the object.
         */
-       public long bind;
+       private long bind;
        /**
         * Indicates if the process is started
         */
index 5f4a8bf..8ab1ac2 100644 (file)
@@ -16,7 +16,7 @@ public class RngStream {
        /**
         * Represents the bind between the RngStream java object and the C object.
         */
-       public long bind;
+       private long bind;
        /**
         * Creates and returns a new stream without identifier. 
         * This procedure reserves space to keep the information relative to
index e82d8dd..d0b5d03 100644 (file)
@@ -22,7 +22,7 @@ public class Task {
         * a native task. Even if this attribute is public you must never
         * access to it. It is set automatically during the build of the object.
         */
-       public long bind = 0;
+       private long bind = 0;
        /**
         * Task name
         */