Skip to content

Commit 087a07b

Browse files
committed
8343479: Remove unnecessary @SuppressWarnings annotations (hotspot)
Reviewed-by: chagedorn, epeter
1 parent 02ec8ca commit 087a07b

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,6 @@ public Map<Class<? extends Architecture>, JVMCIBackend> getJVMCIBackends() {
959959
return Collections.unmodifiableMap(backends);
960960
}
961961

962-
@SuppressWarnings("try")
963962
@VMEntryPoint
964963
private HotSpotCompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long compileState, int id) {
965964
HotSpotCompilationRequest request = new HotSpotCompilationRequest(method, entryBCI, compileState, id);
@@ -981,13 +980,11 @@ private HotSpotCompilationRequestResult compileMethod(HotSpotResolvedJavaMethod
981980
return hsResult;
982981
}
983982

984-
@SuppressWarnings("try")
985983
@VMEntryPoint
986984
private boolean isGCSupported(int gcIdentifier) {
987985
return getCompiler().isGCSupported(gcIdentifier);
988986
}
989987

990-
@SuppressWarnings("try")
991988
@VMEntryPoint
992989
private boolean isIntrinsicSupported(int intrinsicIdentifier) {
993990
return getCompiler().isIntrinsicSupported(intrinsicIdentifier);

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/IndirectHotSpotObjectConstantImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -70,7 +70,6 @@ private static class Audit {
7070
*/
7171
private Object rawAudit;
7272

73-
@SuppressWarnings("serial")
7473
@VMEntryPoint
7574
private IndirectHotSpotObjectConstantImpl(long objectHandle, boolean compressed, boolean skipRegister) {
7675
super(compressed);

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/meta/AnnotationData.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -69,7 +69,6 @@ public final class AnnotationData {
6969
* @throws NullPointerException if any of the above parameters is null or any entry in
7070
* {@code elements} is null
7171
*/
72-
@SuppressWarnings({"rawtypes", "unchecked"})
7372
public AnnotationData(JavaType type, Map.Entry<String, Object>[] elements) {
7473
this.type = Objects.requireNonNull(type);
7574
for (Map.Entry<String, Object> e : elements) {
@@ -125,7 +124,6 @@ public JavaType getAnnotationType() {
125124
* there was an error parsing or creating the element value
126125
*/
127126
// @formatter:on
128-
@SuppressWarnings("unchecked")
129127
public <V> V get(String name, Class<V> elementType) {
130128
Object val = elements.get(name);
131129
if (val == null) {

0 commit comments

Comments
 (0)