8282462: Remove unnecessary use of @SuppressWarnings("preview")
Reviewed-by: vromero
This commit is contained in:
parent
d983d108c5
commit
9d9618a3dd
src/java.compiler/share/classes/javax/lang/model
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
@ -136,7 +136,6 @@ public enum ElementKind {
|
||||
*
|
||||
* @return {@code true} if this is a kind of class
|
||||
*/
|
||||
@SuppressWarnings("preview")
|
||||
public boolean isClass() {
|
||||
return this == CLASS || this == ENUM || this == RECORD;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
@ -159,7 +159,6 @@ public abstract class AbstractElementVisitor6<R, P> implements ElementVisitor<R,
|
||||
*
|
||||
* @since 14
|
||||
*/
|
||||
@SuppressWarnings("preview")
|
||||
@Override
|
||||
public R visitRecordComponent(RecordComponentElement e, P p) {
|
||||
// Use implementation from interface default method
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
@ -79,7 +79,6 @@ public class ElementFilter {
|
||||
private static final Set<ElementKind> MODULE_KIND =
|
||||
Collections.unmodifiableSet(EnumSet.of(ElementKind.MODULE));
|
||||
|
||||
@SuppressWarnings("preview")
|
||||
private static final Set<ElementKind> TYPE_KINDS =
|
||||
Collections.unmodifiableSet(EnumSet.of(ElementKind.CLASS,
|
||||
ElementKind.ENUM,
|
||||
@ -87,7 +86,6 @@ public class ElementFilter {
|
||||
ElementKind.RECORD,
|
||||
ElementKind.ANNOTATION_TYPE));
|
||||
|
||||
@SuppressWarnings("preview")
|
||||
private static final Set<ElementKind> RECORD_COMPONENT_KIND =
|
||||
Set.of(ElementKind.RECORD_COMPONENT);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
@ -139,7 +139,6 @@ public class ElementKindVisitor6<R, P>
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of the kind-specific visit method
|
||||
*/
|
||||
@SuppressWarnings("preview")
|
||||
@Override
|
||||
public R visitType(TypeElement e, P p) {
|
||||
ElementKind k = e.getKind();
|
||||
|
Loading…
x
Reference in New Issue
Block a user