mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8265174: Update Class.getDeclaredMethods to discuss synthetic and bridge methods
Reviewed-by: jfranck
This commit is contained in:
parent
ffb3771816
commit
80026d81a4
5 changed files with 27 additions and 2 deletions
|
@ -257,10 +257,13 @@ public final class Parameter implements AnnotatedElement {
|
|||
* nor explicitly declared in source code; returns {@code false}
|
||||
* otherwise.
|
||||
*
|
||||
* @jls 13.1 The Form of a Binary
|
||||
* @return true if and only if this parameter is a synthetic
|
||||
* construct as defined by
|
||||
* <cite>The Java Language Specification</cite>.
|
||||
* @jls 13.1 The Form of a Binary
|
||||
* @see <a
|
||||
* href="{@docRoot}/java.base/java/lang/reflect/package-summary.html#LanguageJvmModel">Java
|
||||
* programming language and JVM modeling in core reflection</a>
|
||||
*/
|
||||
public boolean isSynthetic() {
|
||||
return Modifier.isSynthetic(getModifiers());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue