mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8344943: Mark not subclassable classes final in java.base exported classes
Reviewed-by: weijun, liach, djelinski
This commit is contained in:
parent
76f792b552
commit
8e8f800071
22 changed files with 44 additions and 47 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 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
|
||||
|
@ -81,7 +81,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
|
|||
* @since 1.8
|
||||
*/
|
||||
|
||||
public class Base64 {
|
||||
public final class Base64 {
|
||||
|
||||
private Base64() {}
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ import jdk.internal.access.SharedSecrets;
|
|||
* @since 1.2
|
||||
*/
|
||||
|
||||
public class Collections {
|
||||
public final class Collections {
|
||||
// Suppresses default constructor, ensuring non-instantiability.
|
||||
private Collections() {
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 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
|
||||
|
@ -33,7 +33,7 @@ package java.util;
|
|||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public class FormattableFlags {
|
||||
public final class FormattableFlags {
|
||||
|
||||
// Explicit instantiation of this class is prohibited.
|
||||
private FormattableFlags() {}
|
||||
|
|
|
@ -68,7 +68,7 @@ import jdk.internal.ref.CleanerFactory;
|
|||
* @since 1.5
|
||||
* @author Doug Lea
|
||||
*/
|
||||
public class Executors {
|
||||
public final class Executors {
|
||||
|
||||
/**
|
||||
* Creates a thread pool that reuses a fixed number of threads
|
||||
|
|
|
@ -139,7 +139,7 @@ import jdk.internal.misc.Unsafe;
|
|||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public class LockSupport {
|
||||
public final class LockSupport {
|
||||
private LockSupport() {} // Cannot be instantiated.
|
||||
|
||||
private static void setBlocker(Thread t, Object arg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue