8305085: Suppress removal warning for finalize() from test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java

Reviewed-by: cjplummer, dholmes
This commit is contained in:
Afshin Zafari 2023-04-14 17:52:17 +00:00 committed by Chris Plummer
parent 5a7886575e
commit 2cc4bf1a9d

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2023, 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
@ -47,6 +47,7 @@
// package access top-level class to avoid problem with RedefineClassHelper
// and nested types.
class RedefineFinalizer_B {
@SuppressWarnings("removal")
protected void finalize() {
// should be empty
}