From 2cc4bf1a9d00dc24ec150e0e39bfdd374eb6eb77 Mon Sep 17 00:00:00 2001 From: Afshin Zafari Date: Fri, 14 Apr 2023 17:52:17 +0000 Subject: [PATCH] 8305085: Suppress removal warning for finalize() from test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java Reviewed-by: cjplummer, dholmes --- .../jvmti/RedefineClasses/RedefineFinalizer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java b/test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java index 4f2faec6748..def17a79874 100644 --- a/test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java +++ b/test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java @@ -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 }