X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0164fce5ac7eb8737258e5bde6d34c956283282..84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6:/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 4c1dfeaa15..5b1bf6685c 100644 --- a/src/bindings/java/org/simgrid/msg/Task.java +++ b/src/bindings/java/org/simgrid/msg/Task.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -44,7 +44,7 @@ public class Task { * This value has to be ≥ 0. * * @param bytesAmount A value of amount of data (in bytes) needed to transfert this task. - * If 0, then it cannot be transfered with the get() and put() methods. + * If 0, then it cannot be transferred with the get() and put() methods. * This value has to be ≥ 0. */ public Task(String name, double flopsAmount, double bytesAmount) { @@ -94,8 +94,8 @@ public class Task { * to process the task. If 0, then it cannot be executed * with the execute() method. This value has to be >= 0. * @param bytesAmount A value of amount of data (in bytes) needed to transfert - * this task. If 0, then it cannot be transfered this task. - * If 0, then it cannot be transfered with the get() and put() + * this task. If 0, then it cannot be transferred this task. + * If 0, then it cannot be transferred with the get() and put() * methods. This value has to be >= 0. * @exception IllegalArgumentException if compute duration <0 or message size <0 */ @@ -180,7 +180,10 @@ public class Task { /** Cancels a task. */ public native void cancel(); - /** Deletes a task once the garbage collector reclaims it */ + /** + * Deletes a task once the garbage collector reclaims it + * @deprecated (from Java9 onwards) + */ @Deprecated @Override protected void finalize() throws Throwable{ nativeFinalize();