]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/java/org/simgrid/msg/Comm.java
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / src / bindings / java / org / simgrid / msg / Comm.java
index b6c6b158c75f40d3b4baabef26618d5085f6e1d9..d73d0420976eed712d22bc7d2d0631f3b6700b9e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2019. The SimGrid Team.
+/* Copyright (c) 2012-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -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();
        }
@@ -73,5 +76,5 @@ public class Comm {
        static {
                org.simgrid.NativeLib.nativeInit();
                nativeInit();
-       }       
+       }
 }