mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8257591: Remove suppression of record preview related warnings in java.lang
Reviewed-by: chegar
This commit is contained in:
parent
66a2e70985
commit
b170c8376d
6 changed files with 10 additions and 16 deletions
|
@ -269,7 +269,6 @@ public final class Class<T> implements java.io.Serializable,
|
|||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
@SuppressWarnings("preview")
|
||||
public String toGenericString() {
|
||||
if (isPrimitive()) {
|
||||
return toString();
|
||||
|
@ -3548,7 +3547,6 @@ public final class Class<T> implements java.io.Serializable,
|
|||
private native Method[] getDeclaredMethods0(boolean publicOnly);
|
||||
private native Constructor<T>[] getDeclaredConstructors0(boolean publicOnly);
|
||||
private native Class<?>[] getDeclaredClasses0();
|
||||
@SuppressWarnings("preview")
|
||||
private native RecordComponent[] getRecordComponents0();
|
||||
private native boolean isRecord0();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, 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
|
||||
|
@ -57,7 +57,6 @@ public final class RecordComponent implements AnnotatedElement {
|
|||
private transient FieldRepository genericInfo;
|
||||
private byte[] annotations;
|
||||
private byte[] typeAnnotations;
|
||||
@SuppressWarnings("preview")
|
||||
private RecordComponent root;
|
||||
|
||||
// only the JVM can create record components
|
||||
|
@ -189,7 +188,6 @@ public final class RecordComponent implements AnnotatedElement {
|
|||
if ((declAnnos = declaredAnnotations) == null) {
|
||||
synchronized (this) {
|
||||
if ((declAnnos = declaredAnnotations) == null) {
|
||||
@SuppressWarnings("preview")
|
||||
RecordComponent root = this.root;
|
||||
if (root != null) {
|
||||
declAnnos = root.declaredAnnotations();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, 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
|
||||
|
@ -72,7 +72,6 @@ public class ObjectMethods {
|
|||
|
||||
static {
|
||||
try {
|
||||
@SuppressWarnings("preview")
|
||||
Class<ObjectMethods> OBJECT_METHODS_CLASS = ObjectMethods.class;
|
||||
MethodHandles.Lookup publicLookup = MethodHandles.publicLookup();
|
||||
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue