mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8224243: Add implSpec's to AccessibleObject and seal Executable
Reviewed-by: alanb
This commit is contained in:
parent
594d454475
commit
0b77359384
3 changed files with 21 additions and 6 deletions
|
@ -47,11 +47,12 @@ import sun.reflect.generics.repository.ConstructorRepository;
|
|||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
public abstract class Executable extends AccessibleObject
|
||||
implements Member, GenericDeclaration {
|
||||
public abstract sealed class Executable extends AccessibleObject
|
||||
implements Member, GenericDeclaration permits Constructor, Method {
|
||||
/*
|
||||
* Only grant package-visibility to the constructor.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
Executable() {}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue