mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8283415: Update java.lang.ref to use sealed classes
Reviewed-by: kbarrett, alanb
This commit is contained in:
parent
f4f87284cb
commit
14b9e80b8a
5 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue