8343479: Remove unnecessary @SuppressWarnings annotations (hotspot)
Reviewed-by: chagedorn, epeter
This commit is contained in:
parent
02ec8ca2d6
commit
087a07b5ed
@ -959,7 +959,6 @@ public final class HotSpotJVMCIRuntime implements JVMCIRuntime {
|
|||||||
return Collections.unmodifiableMap(backends);
|
return Collections.unmodifiableMap(backends);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("try")
|
|
||||||
@VMEntryPoint
|
@VMEntryPoint
|
||||||
private HotSpotCompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long compileState, int id) {
|
private HotSpotCompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long compileState, int id) {
|
||||||
HotSpotCompilationRequest request = new HotSpotCompilationRequest(method, entryBCI, compileState, id);
|
HotSpotCompilationRequest request = new HotSpotCompilationRequest(method, entryBCI, compileState, id);
|
||||||
@ -981,13 +980,11 @@ public final class HotSpotJVMCIRuntime implements JVMCIRuntime {
|
|||||||
return hsResult;
|
return hsResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("try")
|
|
||||||
@VMEntryPoint
|
@VMEntryPoint
|
||||||
private boolean isGCSupported(int gcIdentifier) {
|
private boolean isGCSupported(int gcIdentifier) {
|
||||||
return getCompiler().isGCSupported(gcIdentifier);
|
return getCompiler().isGCSupported(gcIdentifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("try")
|
|
||||||
@VMEntryPoint
|
@VMEntryPoint
|
||||||
private boolean isIntrinsicSupported(int intrinsicIdentifier) {
|
private boolean isIntrinsicSupported(int intrinsicIdentifier) {
|
||||||
return getCompiler().isIntrinsicSupported(intrinsicIdentifier);
|
return getCompiler().isIntrinsicSupported(intrinsicIdentifier);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -70,7 +70,6 @@ final class IndirectHotSpotObjectConstantImpl extends HotSpotObjectConstantImpl
|
|||||||
*/
|
*/
|
||||||
private Object rawAudit;
|
private Object rawAudit;
|
||||||
|
|
||||||
@SuppressWarnings("serial")
|
|
||||||
@VMEntryPoint
|
@VMEntryPoint
|
||||||
private IndirectHotSpotObjectConstantImpl(long objectHandle, boolean compressed, boolean skipRegister) {
|
private IndirectHotSpotObjectConstantImpl(long objectHandle, boolean compressed, boolean skipRegister) {
|
||||||
super(compressed);
|
super(compressed);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -69,7 +69,6 @@ public final class AnnotationData {
|
|||||||
* @throws NullPointerException if any of the above parameters is null or any entry in
|
* @throws NullPointerException if any of the above parameters is null or any entry in
|
||||||
* {@code elements} is null
|
* {@code elements} is null
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
|
||||||
public AnnotationData(JavaType type, Map.Entry<String, Object>[] elements) {
|
public AnnotationData(JavaType type, Map.Entry<String, Object>[] elements) {
|
||||||
this.type = Objects.requireNonNull(type);
|
this.type = Objects.requireNonNull(type);
|
||||||
for (Map.Entry<String, Object> e : elements) {
|
for (Map.Entry<String, Object> e : elements) {
|
||||||
@ -125,7 +124,6 @@ public final class AnnotationData {
|
|||||||
* there was an error parsing or creating the element value
|
* there was an error parsing or creating the element value
|
||||||
*/
|
*/
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public <V> V get(String name, Class<V> elementType) {
|
public <V> V get(String name, Class<V> elementType) {
|
||||||
Object val = elements.get(name);
|
Object val = elements.get(name);
|
||||||
if (val == null) {
|
if (val == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user