Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Mark deprecated method as "@Deprecated".
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 3 Jul 2019 07:54:15 +0000 (09:54 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 3 Jul 2019 07:54:39 +0000 (09:54 +0200)
src/bindings/java/org/simgrid/msg/Comm.java
src/bindings/java/org/simgrid/msg/Mutex.java
src/bindings/java/org/simgrid/msg/RngStream.java
src/bindings/java/org/simgrid/msg/Semaphore.java
src/bindings/java/org/simgrid/msg/Task.java
src/bindings/java/org/simgrid/msg/VM.java

index b6c6b15..2338380 100644 (file)
@@ -30,7 +30,7 @@ public class Comm {
 
        }
        /** Destroy the C communication object, when the GC reclaims the java part. */
-       @Override
+       @Deprecated @Override
        protected void finalize() throws Throwable{
                nativeFinalize();
        }
index 6e253ea..b7d9f5c 100644 (file)
@@ -18,7 +18,7 @@ public class Mutex {
                init();
        }
 
-       @Override
+       @Deprecated @Override
        protected void finalize() throws Throwable {
                nativeFinalize();
        }
index 5aa76d9..0fbfd31 100644 (file)
@@ -42,7 +42,7 @@ public class RngStream {
         */
        private native void create(String name);
 
-       @Override
+       @Deprecated @Override
        protected void finalize() throws Throwable{
                nativeFinalize();
        }
index e404376..7811aed 100644 (file)
@@ -67,7 +67,7 @@ public class Semaphore {
 
 
        /** Deletes this semaphore when the GC reclaims it */
-       @Override
+       @Deprecated @Override
        protected void finalize() throws Throwable {
                nativeFinalize();
        }
@@ -80,4 +80,4 @@ public class Semaphore {
                org.simgrid.NativeLib.nativeInit();
                nativeInit();
        }
-}
\ No newline at end of file
+}
index a8d11ac..4c1dfea 100644 (file)
@@ -181,7 +181,7 @@ public class Task {
        public native void cancel();
 
        /** Deletes a task once the garbage collector reclaims it */
-       @Override
+       @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()
index d7808f4..bca633f 100644 (file)
@@ -68,6 +68,7 @@ public class VM extends Host {
        public static native VM getVMByName(String name);
 
        /* Make sure that the GC also destroys the C object */
+       @Deprecated @Override
        protected void finalize() throws Throwable {
                nativeFinalize();
        }