From 1a31e9dc0cbcc458b241293a479123954f55f28c Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 25 Apr 2023 12:10:35 +1200 Subject: [java] Suppress removal warnings for finalize() The "deprecation" warning has been changed to a "removal" warning with newer JDK versions. This needs to be addressed, but meanwhile it makes running the testsuite unusably noisy so suppressing it seems more helpful than not. Closes: #2556 --- Examples/test-suite/java_director.i | 2 +- Examples/test-suite/java_throws.i | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Examples') diff --git a/Examples/test-suite/java_director.i b/Examples/test-suite/java_director.i index 6b2cb6dfe..adfffaa5b 100644 --- a/Examples/test-suite/java_director.i +++ b/Examples/test-suite/java_director.i @@ -7,7 +7,7 @@ %module(directors="1") java_director %typemap(javafinalize) SWIGTYPE %{ - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", "removal"}) protected void finalize() { // System.out.println("Finalizing " + this); delete(); diff --git a/Examples/test-suite/java_throws.i b/Examples/test-suite/java_throws.i index 67d8d4ebc..7463fee83 100644 --- a/Examples/test-suite/java_throws.i +++ b/Examples/test-suite/java_throws.i @@ -183,7 +183,7 @@ try { // Need to handle the checked exception in NoExceptTest.delete() %typemap(javafinalize) SWIGTYPE %{ - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", "removal"}) protected void finalize() { try { delete(); -- cgit v1.2.1