mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8283700: Add final or sealed modifier to appropriate java.awt API classes
Reviewed-by: darcy, aivanov, serb, psadhukhan
This commit is contained in:
parent
ec9ab558a3
commit
e85fa2f04b
12 changed files with 29 additions and 12 deletions
|
@ -57,7 +57,9 @@ import sun.util.logging.PlatformLogger;
|
|||
*
|
||||
* @since 1.1
|
||||
*/
|
||||
public abstract class InputEvent extends ComponentEvent {
|
||||
public abstract sealed class InputEvent extends ComponentEvent
|
||||
permits KeyEvent,
|
||||
MouseEvent {
|
||||
|
||||
private static final PlatformLogger logger = PlatformLogger.getLogger("java.awt.event.InputEvent");
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ import sun.awt.AWTAccessor;
|
|||
*
|
||||
* @since 1.1
|
||||
*/
|
||||
public class KeyEvent extends InputEvent {
|
||||
public non-sealed class KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Stores the state of native event dispatching system
|
||||
|
|
|
@ -189,7 +189,7 @@ import sun.awt.SunToolkit;
|
|||
*
|
||||
* @since 1.1
|
||||
*/
|
||||
public class MouseEvent extends InputEvent {
|
||||
public non-sealed class MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* The first number in the range of ids used for mouse events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue