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);
|
||||
}
|
||||
|
||||
@SuppressWarnings("try")
|
||||
@VMEntryPoint
|
||||
private HotSpotCompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long compileState, int id) {
|
||||
HotSpotCompilationRequest request = new HotSpotCompilationRequest(method, entryBCI, compileState, id);
|
||||
@ -981,13 +980,11 @@ public final class HotSpotJVMCIRuntime implements JVMCIRuntime {
|
||||
return hsResult;
|
||||
}
|
||||
|
||||
@SuppressWarnings("try")
|
||||
@VMEntryPoint
|
||||
private boolean isGCSupported(int gcIdentifier) {
|
||||
return getCompiler().isGCSupported(gcIdentifier);
|
||||
}
|
||||
|
||||
@SuppressWarnings("try")
|
||||
@VMEntryPoint
|
||||
private boolean isIntrinsicSupported(int 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.
|
||||
*
|
||||
* 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;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@VMEntryPoint
|
||||
private IndirectHotSpotObjectConstantImpl(long objectHandle, boolean compressed, boolean skipRegister) {
|
||||
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.
|
||||
*
|
||||
* 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
|
||||
* {@code elements} is null
|
||||
*/
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
public AnnotationData(JavaType type, Map.Entry<String, Object>[] elements) {
|
||||
this.type = Objects.requireNonNull(type);
|
||||
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
|
||||
*/
|
||||
// @formatter:on
|
||||
@SuppressWarnings("unchecked")
|
||||
public <V> V get(String name, Class<V> elementType) {
|
||||
Object val = elements.get(name);
|
||||
if (val == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user