< prev index next >

src/java.base/share/classes/java/lang/reflect/Method.java

Print this page

        

*** 209,219 **** byte[] getAnnotationBytes() { return annotations; } /** ! * {@inheritDoc} */ @Override public Class<?> getDeclaringClass() { return clazz; } --- 209,220 ---- byte[] getAnnotationBytes() { return annotations; } /** ! * Returns the {@code Class} object representing the class or interface ! * that declares the method represented by this object. */ @Override public Class<?> getDeclaringClass() { return clazz; }
*** 370,380 **** * the method return type, followed by a space, followed by the * class declaring the method, followed by a period, followed by * the method name, followed by a parenthesized, comma-separated * list of the method's formal parameter types. If the method * throws checked exceptions, the parameter list is followed by a ! * space, followed by the word throws followed by a * comma-separated list of the thrown exception types. * For example: * <pre> * public boolean java.lang.Object.equals(java.lang.Object) * </pre> --- 371,381 ---- * the method return type, followed by a space, followed by the * class declaring the method, followed by a period, followed by * the method name, followed by a parenthesized, comma-separated * list of the method's formal parameter types. If the method * throws checked exceptions, the parameter list is followed by a ! * space, followed by the word "{@code throws}" followed by a * comma-separated list of the thrown exception types. * For example: * <pre> * public boolean java.lang.Object.equals(java.lang.Object) * </pre>
*** 426,437 **** * and from the type parameters or return type. If there are no * type parameters, the type parameter list is elided; if the type * parameter list is present, a space separates the list from the * class name. If the method is declared to throw exceptions, the * parameter list is followed by a space, followed by the word ! * throws followed by a comma-separated list of the generic thrown ! * exception types. * * <p>The access modifiers are placed in canonical order as * specified by "The Java Language Specification". This is * {@code public}, {@code protected} or {@code private} first, * and then other modifiers in the following order: --- 427,438 ---- * and from the type parameters or return type. If there are no * type parameters, the type parameter list is elided; if the type * parameter list is present, a space separates the list from the * class name. If the method is declared to throw exceptions, the * parameter list is followed by a space, followed by the word ! * "{@code throws}" followed by a comma-separated list of the generic ! * thrown exception types. * * <p>The access modifiers are placed in canonical order as * specified by "The Java Language Specification". This is * {@code public}, {@code protected} or {@code private} first, * and then other modifiers in the following order:
< prev index next >