8257591: Remove suppression of record preview related warnings in java.lang

Reviewed-by: chegar
This commit is contained in:
Julia Boes 2020-12-03 15:48:03 +00:00
parent 66a2e70985
commit b170c8376d
6 changed files with 10 additions and 16 deletions

View file

@ -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();