From 2dac427b34bfcf6df465779a468849c1ffebf613 Mon Sep 17 00:00:00 2001 From: Samuel Lepetit Date: Wed, 13 Jun 2012 11:12:17 +0200 Subject: [PATCH] Make bind atributes private (we don't want users to mess with it) --- org/simgrid/msg/Comm.java | 4 ++-- org/simgrid/msg/File.java | 2 +- org/simgrid/msg/Host.java | 2 +- org/simgrid/msg/Process.java | 2 +- org/simgrid/msg/RngStream.java | 2 +- org/simgrid/msg/Task.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/org/simgrid/msg/Comm.java b/org/simgrid/msg/Comm.java index 423371db1a..a0e20447be 100644 --- a/org/simgrid/msg/Comm.java +++ b/org/simgrid/msg/Comm.java @@ -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 */ diff --git a/org/simgrid/msg/File.java b/org/simgrid/msg/File.java index 0f85eb4fa9..d5af2083e8 100644 --- a/org/simgrid/msg/File.java +++ b/org/simgrid/msg/File.java @@ -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 diff --git a/org/simgrid/msg/Host.java b/org/simgrid/msg/Host.java index 905596d26b..28d97cf05e 100644 --- a/org/simgrid/msg/Host.java +++ b/org/simgrid/msg/Host.java @@ -49,7 +49,7 @@ public class Host { * * @see Host.getByName(). */ - public long bind; + private long bind; /** * Host name */ diff --git a/org/simgrid/msg/Process.java b/org/simgrid/msg/Process.java index 714a7a3a75..3a658a2317 100644 --- a/org/simgrid/msg/Process.java +++ b/org/simgrid/msg/Process.java @@ -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 */ diff --git a/org/simgrid/msg/RngStream.java b/org/simgrid/msg/RngStream.java index 5f4a8bf3b0..8ab1ac2ae4 100644 --- a/org/simgrid/msg/RngStream.java +++ b/org/simgrid/msg/RngStream.java @@ -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 diff --git a/org/simgrid/msg/Task.java b/org/simgrid/msg/Task.java index e82d8dd556..d0b5d03a59 100644 --- a/org/simgrid/msg/Task.java +++ b/org/simgrid/msg/Task.java @@ -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 */ -- 2.20.1