Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Add @deprecated in javadoc.
[simgrid.git] / src / bindings / java / org / simgrid / msg / Comm.java
index b6c6b15..3346fac 100644 (file)
@@ -29,8 +29,11 @@ public class Comm {
        protected Comm() {
 
        }
-       /** Destroy the C communication object, when the GC reclaims the java part. */
-       @Override
+       /**
+        * Destroy the C communication object, when the GC reclaims the java part.
+        * @deprecated (from Java9 onwards)
+        */
+       @Deprecated @Override
        protected void finalize() throws Throwable{
                nativeFinalize();
        }