8224243: Add implSpec's to AccessibleObject and seal Executable

Reviewed-by: alanb
This commit is contained in:
Joe Darcy 2021-05-25 18:04:47 +00:00
parent 594d454475
commit 0b77359384
3 changed files with 21 additions and 6 deletions

View file

@ -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() {}
/**