src/share/classes/java/lang/reflect/Parameter.java
Print this page
*** 150,159 ****
--- 150,161 ----
/**
* Returns the name of the parameter. If the parameter's name is
* defined in a class file, then that name will be returned by
* this method. Otherwise, this method will synthesize a name of
* the form argN, where N is the index of the parameter.
+ *
+ * @return the name of the parameter
*/
public String getName() {
// Note: empty strings as paramete names are now outlawed.
// The .equals("") is for compatibility with current JVM
// behavior. It may be removed at some point.