< prev index next >
src/java.base/share/classes/java/lang/reflect/Method.java
Print this page
*** 212,223 ****
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;
}
--- 212,225 ----
byte[] getAnnotationBytes() {
return annotations;
}
/**
! * Returns the {@code Class} object representing
! * {@linkplain Class#asBoxType() the box type} of the class or interface
* that declares the method represented by this object.
+ *
*/
@Override
public Class<?> getDeclaringClass() {
return clazz;
}
< prev index next >