X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f06041cf2c450457a0b47a49b66b19cb9133c18e..d2990e6ae897aeb38681ef24acfa01935acf8354:/src/bindings/java/org/simgrid/msg/Storage.java diff --git a/src/bindings/java/org/simgrid/msg/Storage.java b/src/bindings/java/org/simgrid/msg/Storage.java index 1b7950163c..b4cac70932 100644 --- a/src/bindings/java/org/simgrid/msg/Storage.java +++ b/src/bindings/java/org/simgrid/msg/Storage.java @@ -17,23 +17,17 @@ public class Storage { */ private long bind; - /** - * Storage name - */ + /** Storage name */ protected String name; - /** - * User data. - */ + /** User data. */ private Object data; - /** - * - */ protected Storage() { this.bind = 0; this.data = null; - }; + } + @Override public String toString (){ return this.name; @@ -47,10 +41,10 @@ public class Storage { * * @return The storage object with the given name. * @exception StorageNotFoundException if the name of the storage is not valid. - * NativeException if the native version of this method failed. + * @exception NativeException if the native version of this method failed. */ - public native static Storage getByName(String name) - throws HostNotFoundException, NullPointerException; + public static native Storage getByName(String name) + throws HostNotFoundException, NullPointerException, NativeException, StorageNotFoundException; /** * This method returns the name of a storage. @@ -110,7 +104,7 @@ public class Storage { * @return An array containing all the storages installed. * */ - public native static Storage[] all(); + public static native Storage[] all(); /** * Class initializer, to initialize various JNI stuff @@ -120,4 +114,4 @@ public class Storage { nativeInit(); } -} \ No newline at end of file +}