A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sonar] Constructors of an "abstract" class should not be "public".
[simgrid.git]
/
src
/
bindings
/
java
/
org
/
simgrid
/
msg
/
Process.java
diff --git
a/src/bindings/java/org/simgrid/msg/Process.java
b/src/bindings/java/org/simgrid/msg/Process.java
index
d8f1f3b
..
5fb1b26
100644
(file)
--- a/
src/bindings/java/org/simgrid/msg/Process.java
+++ b/
src/bindings/java/org/simgrid/msg/Process.java
@@
-73,7
+73,7
@@
public abstract class Process implements Runnable {
*
*
*/
*
*
*/
- p
ublic
Process(String hostname, String name) throws HostNotFoundException {
+ p
rotected
Process(String hostname, String name) throws HostNotFoundException {
this(Host.getByName(hostname), name, null);
}
/**
this(Host.getByName(hostname), name, null);
}
/**
@@
-87,7
+87,7
@@
public abstract class Process implements Runnable {
* @exception HostNotFoundException if no host with this name exists.
*
*/
* @exception HostNotFoundException if no host with this name exists.
*
*/
- p
ublic
Process(String hostname, String name, String[] args) throws HostNotFoundException {
+ p
rotected
Process(String hostname, String name, String[] args) throws HostNotFoundException {
this(Host.getByName(hostname), name, args);
}
/**
this(Host.getByName(hostname), name, args);
}
/**
@@
-98,7
+98,7
@@
public abstract class Process implements Runnable {
* @param name The name of the process.
*
*/
* @param name The name of the process.
*
*/
- p
ublic
Process(Host host, String name) {
+ p
rotected
Process(Host host, String name) {
this(host, name, null);
}
/**
this(host, name, null);
}
/**
@@
-109,7
+109,7
@@
public abstract class Process implements Runnable {
* @param name The name of the process.
* @param argsParam The arguments of main method of the process.
*/
* @param name The name of the process.
* @param argsParam The arguments of main method of the process.
*/
- p
ublic
Process(Host host, String name, String[]argsParam)
+ p
rotected
Process(Host host, String name, String[]argsParam)
{
if (host == null)
throw new IllegalArgumentException("Cannot create a process on the null host");
{
if (host == null)
throw new IllegalArgumentException("Cannot create a process on the null host");
@@
-134,7
+134,7
@@
public abstract class Process implements Runnable {
* @param killTime Kill time of the process
*
*/
* @param killTime Kill time of the process
*
*/
- p
ublic
Process(Host host, String name, String[]args, double startTime, double killTime) {
+ p
rotected
Process(Host host, String name, String[]args, double startTime, double killTime) {
this(host, name, args);
this.startTime = startTime;
this.killTime = killTime;
this(host, name, args);
this.startTime = startTime;
this.killTime = killTime;