Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[java] fix some small issues found by SonarQube
[simgrid.git] / src / bindings / java / org / simgrid / msg / File.java
index ed65770..456e474 100644 (file)
@@ -15,12 +15,12 @@ public class File {
        private long bind = 0;
        /**
         * Constructor, opens the file.
-        * @param storage is the name where you can find the file descriptor 
         * @param path is the file location on the storage 
         */
        public File(String path) {
                open(path);
        }
+       @Override
        protected void finalize() {
 
        }
@@ -45,13 +45,11 @@ public class File {
         * Close the file.      
         */
        public native void close();
-       
-       /**
-        * Class initializer, to initialize various JNI stuff
-        */
+
+       /** Class initializer, to initialize various JNI stuff */
        public static native void nativeInit();
        static {
-               Msg.nativeInit();
+               org.simgrid.NativeLib.nativeInit();
                nativeInit();
        }       
 }
\ No newline at end of file