X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/src/bindings/java/org/simgrid/msg/Mutex.java diff --git a/src/bindings/java/org/simgrid/msg/Mutex.java b/src/bindings/java/org/simgrid/msg/Mutex.java index 80f013bec1..c209ec5047 100644 --- a/src/bindings/java/org/simgrid/msg/Mutex.java +++ b/src/bindings/java/org/simgrid/msg/Mutex.java @@ -1,14 +1,14 @@ -/* Copyright (c) 2012-2014. The SimGrid Team. +/* Copyright (c) 2012-2023. 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. */ package org.simgrid.msg; -/** A mutex implemented on top of SimGrid synchronization mechanisms. - * You can use it exactly the same way that you use the mutexes, - * but to handle the interactions between the processes within the simulation. - * +/** A mutex implemented on top of SimGrid synchronization mechanisms. + * You can use it exactly the same way that you use the mutexes, + * but to handle the interactions between the processes within the simulation. + * * Don't mix simgrid synchronization with Java native one, or it will deadlock! */ public class Mutex { @@ -18,7 +18,9 @@ public class Mutex { init(); } - protected void finalize() throws Throwable{ + /** @deprecated (from Java9 onwards) */ + @Deprecated @Override + protected void finalize() throws Throwable { nativeFinalize(); } private native void nativeFinalize(); @@ -31,7 +33,7 @@ public class Mutex { static { org.simgrid.NativeLib.nativeInit(); nativeInit(); - } + } }