Mercurial > hg > octave-nkf
comparison scripts/deprecated/java_new.m @ 15784:2abea2cfdace
java_new.m: can also have only one argument
author | Philip Nienhuis <prnienhuis@users.sf.net> |
---|---|
date | Thu, 13 Dec 2012 22:14:36 +0100 |
parents | 4698ea77aa75 |
children | 2a2c090fdef8 |
comparison
equal
deleted
inserted
replaced
15783:d61b92690820 | 15784:2abea2cfdace |
---|---|
39 warned = true; | 39 warned = true; |
40 warning ("Octave:deprecated-function", | 40 warning ("Octave:deprecated-function", |
41 "java_new is obsolete and will be removed from a future version of Octave; please use javaObject instead"); | 41 "java_new is obsolete and will be removed from a future version of Octave; please use javaObject instead"); |
42 endif | 42 endif |
43 | 43 |
44 if (nargin < 2) | 44 if (nargin < 1) |
45 print_usage (); | 45 print_usage (); |
46 endif | 46 endif |
47 | 47 |
48 retval = javaObject (varargin); | 48 retval = javaObject (varargin); |
49 | 49 |