mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8287908: Use non-cloning reflection methods where acceptable
Reviewed-by: rriggs
This commit is contained in:
parent
0c61bf109f
commit
9ef6c0925a
4 changed files with 9 additions and 9 deletions
|
@ -330,7 +330,7 @@ public abstract sealed class Executable extends AccessibleObject
|
|||
} else {
|
||||
final boolean realParamData = hasRealParameterData();
|
||||
final Type[] genericParamTypes = getGenericParameterTypes();
|
||||
final Type[] nonGenericParamTypes = getParameterTypes();
|
||||
final Type[] nonGenericParamTypes = getSharedParameterTypes();
|
||||
// If we have real parameter data, then we use the
|
||||
// synthetic and mandate flags to our advantage.
|
||||
if (realParamData) {
|
||||
|
@ -357,7 +357,7 @@ public abstract sealed class Executable extends AccessibleObject
|
|||
// synthetic/mandated, thus, no way to match up the
|
||||
// indexes.
|
||||
return genericParamTypes.length == nonGenericParamTypes.length ?
|
||||
genericParamTypes : nonGenericParamTypes;
|
||||
genericParamTypes : getParameterTypes();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue