mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8263333: Improve links from core reflection to JLS and JVMS
Reviewed-by: jfranck
This commit is contained in:
parent
9399e1b710
commit
acda812958
5 changed files with 21 additions and 1 deletions
|
@ -234,6 +234,7 @@ public final class Method extends Executable {
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @jls 8.4.3 Method Modifiers
|
||||
*/
|
||||
@Override
|
||||
public int getModifiers() {
|
||||
|
@ -244,6 +245,7 @@ public final class Method extends Executable {
|
|||
* {@inheritDoc}
|
||||
* @throws GenericSignatureFormatError {@inheritDoc}
|
||||
* @since 1.5
|
||||
* @jls 8.4.4 Generic Methods
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
|
@ -613,6 +615,7 @@ public final class Method extends Executable {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
* @since 1.5
|
||||
* @jls 8.4.1 Formal Parameters
|
||||
*/
|
||||
@Override
|
||||
public boolean isVarArgs() {
|
||||
|
@ -640,6 +643,7 @@ public final class Method extends Executable {
|
|||
* @return true if and only if this method is a default
|
||||
* method as defined by the Java Language Specification.
|
||||
* @since 1.8
|
||||
* @jls 9.4 Method Declarations
|
||||
*/
|
||||
public boolean isDefault() {
|
||||
// Default methods are public non-abstract instance methods
|
||||
|
@ -697,6 +701,7 @@ public final class Method extends Executable {
|
|||
* {@link Class} and no definition can be found for the
|
||||
* default class value.
|
||||
* @since 1.5
|
||||
* @jls 9.6.2 Defaults for Annotation Type Elements
|
||||
*/
|
||||
public Object getDefaultValue() {
|
||||
if (annotationDefault == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue