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
Merge branches 'master' and 'master' of github.com:simgrid/simgrid
[simgrid.git]
/
src
/
bindings
/
java
/
org
/
simgrid
/
msg
/
Task.java
diff --git
a/src/bindings/java/org/simgrid/msg/Task.java
b/src/bindings/java/org/simgrid/msg/Task.java
index
0dec155
..
a82ce2f
100644
(file)
--- a/
src/bindings/java/org/simgrid/msg/Task.java
+++ b/
src/bindings/java/org/simgrid/msg/Task.java
@@
-74,13
+74,13
@@
public class Task {
*/
public Task(String name, Host[]hosts, double[]flopsAmount, double[]bytesAmount) {
if (flopsAmount == null)
*/
public Task(String name, Host[]hosts, double[]flopsAmount, double[]bytesAmount) {
if (flopsAmount == null)
- throw new
NullPointer
Exception("Parallel task flops amounts is null");
+ throw new
IllegalArgument
Exception("Parallel task flops amounts is null");
if (bytesAmount == null)
if (bytesAmount == null)
- throw new
NullPointer
Exception("Parallel task bytes amounts is null");
+ throw new
IllegalArgument
Exception("Parallel task bytes amounts is null");
if (hosts == null)
if (hosts == null)
- throw new
NullPointer
Exception("Host list is null");
+ throw new
IllegalArgument
Exception("Host list is null");
if (name == null)
if (name == null)
- throw new
NullPointer
Exception("Parallel task name is null");
+ throw new
IllegalArgument
Exception("Parallel task name is null");
parallelCreate(name, hosts, flopsAmount, bytesAmount);
this.name = name;
parallelCreate(name, hosts, flopsAmount, bytesAmount);
this.name = name;