-/* Copyright (c) 2006-2016. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2021. 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. */
* 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 with the get() and put() methods.
+ * @param bytesAmount A value of amount of data (in bytes) needed to transfer this task.
+ * 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) {
* @param flopsAmount A value of the processing amount (in flop) needed
* 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()
+ * @param bytesAmount A value of amount of data (in bytes) needed to transfer
+ * 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
*/
/** Cancels a task. */
public native void cancel();
- /** Deletes a task once the garbage collector reclaims it */
- @Override
+ /**
+ * Deletes a task once the garbage collector reclaims it
+ * @deprecated (from Java9 onwards)
+ */
+ @Deprecated @Override
protected void finalize() throws Throwable{
nativeFinalize();
bind=0; // to avoid segfaults if the impossible happens yet again making this task surviving its finalize()