8283415: Update java.lang.ref to use sealed classes

Reviewed-by: kbarrett, alanb
This commit is contained in:
Joe Darcy 2022-03-21 16:57:17 +00:00
parent f4f87284cb
commit 14b9e80b8a
5 changed files with 11 additions and 10 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 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
@ -50,7 +50,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
* @since 1.2
*/
public class PhantomReference<T> extends Reference<T> {
public non-sealed class PhantomReference<T> extends Reference<T> {
/**
* Returns this reference object's referent. Because the referent of a