8344943: Mark not subclassable classes final in java.base exported classes

Reviewed-by: weijun, liach, djelinski
This commit is contained in:
Eirik Bjørsnøs 2025-01-24 19:29:05 +00:00
parent 76f792b552
commit 8e8f800071
22 changed files with 44 additions and 47 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2025, 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
@ -44,7 +44,7 @@ package java.io;
*
* @since 1.1
*/
public class OptionalDataException extends ObjectStreamException {
public final class OptionalDataException extends ObjectStreamException {
@java.io.Serial
private static final long serialVersionUID = -8011121865681257820L;