Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Add @deprecated in javadoc.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 4 Jul 2019 07:08:43 +0000 (09:08 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 4 Jul 2019 07:10:27 +0000 (09:10 +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 2338380..3346fac 100644 (file)
@@ -29,7 +29,10 @@ public class Comm {
        protected Comm() {
 
        }
-       /** Destroy the C communication object, when the GC reclaims the java part. */
+       /**
+        * Destroy the C communication object, when the GC reclaims the java part.
+        * @deprecated (from Java9 onwards)
+        */
        @Deprecated @Override
        protected void finalize() throws Throwable{
                nativeFinalize();
index b7d9f5c..e23d1fc 100644 (file)
@@ -18,6 +18,7 @@ public class Mutex {
                init();
        }
 
+       /** @deprecated (from Java9 onwards) */
        @Deprecated @Override
        protected void finalize() throws Throwable {
                nativeFinalize();
index 0fbfd31..2209f49 100644 (file)
@@ -42,6 +42,7 @@ public class RngStream {
         */
        private native void create(String name);
 
+       /** @deprecated (from Java9 onwards) */
        @Deprecated @Override
        protected void finalize() throws Throwable{
                nativeFinalize();
index 7811aed..c348bd4 100644 (file)
@@ -66,7 +66,10 @@ public class Semaphore {
        }
 
 
-       /** Deletes this semaphore when the GC reclaims it */
+       /**
+        * Deletes this semaphore when the GC reclaims it
+        * @deprecated (from Java9 onwards)
+        */
        @Deprecated @Override
        protected void finalize() throws Throwable {
                nativeFinalize();
index 4c1dfea..5bb5d29 100644 (file)
@@ -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();
index bca633f..f0a778b 100644 (file)
@@ -67,7 +67,10 @@ public class VM extends Host {
        /** Retrieve a VM from its name */
        public static native VM getVMByName(String name);
 
-       /* Make sure that the GC also destroys the C object */
+       /**
+        * Make sure that the GC also destroys the C object
+        * @deprecated (from Java9 onwards)
+        */
        @Deprecated @Override
        protected void finalize() throws Throwable {
                nativeFinalize();