mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8288573: Make Executable.getParameterCount() actually abstract
Reviewed-by: iris, alanb, jpai
This commit is contained in:
parent
af64d316c0
commit
47b86690b6
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -253,9 +253,7 @@ public abstract sealed class Executable extends AccessibleObject
|
|||
* @return The number of formal parameters for the executable this
|
||||
* object represents
|
||||
*/
|
||||
public int getParameterCount() {
|
||||
throw new AbstractMethodError();
|
||||
}
|
||||
public abstract int getParameterCount();
|
||||
|
||||
/**
|
||||
* Returns an array of {@code Type} objects that represent the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue