Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Add @deprecated in javadoc.
[simgrid.git] / src / bindings / java / org / simgrid / msg / VM.java
index d7808f4..f0a778b 100644 (file)
@@ -67,7 +67,11 @@ 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();
        }