Mercurial > octave-nkf
diff scripts/deprecated/javafields.m @ 19628:fe689210525c gui-release
maint: Periodic merge of stable to gui-release.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:05:42 -0500 |
parents | e124ae274013 446c46af4b42 |
children |
line wrap: on
line diff
--- a/scripts/deprecated/javafields.m Mon Jan 19 07:04:12 2015 +0100 +++ b/scripts/deprecated/javafields.m Tue Jan 20 10:05:42 2015 -0500 @@ -20,7 +20,7 @@ ## @deftypefn {Function File} {} javafields (@var{javaobj}) ## @deftypefnx {Function File} {} javafields ("@var{classname}") ## @deftypefnx {Function File} {@var{fld_names} =} javafields (@dots{}) -## Return the fields of a Java object or Java class in the form of a cell +## Return the fields of a Java object or Java class in the form of a cell ## array of strings. If no output is requested, print the result ## to the standard output. ## @seealso{fieldnames, methods, javaObject} @@ -34,11 +34,11 @@ warning ("Octave:deprecated-function", "javafields is obsolete and will be removed from a future version of Octave, please use fieldnames instead"); endif - + if (nargin != 1) print_usage (); endif - + c_methods = javaMethod ("getFields", "org.octave.ClassHelper", javaobj); method_list = ostrsplit (c_methods, ';');