diff options
author | Olly Betts <olly@survex.com> | 2023-04-25 12:10:35 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2023-05-12 08:48:20 +1200 |
commit | 1a31e9dc0cbcc458b241293a479123954f55f28c (patch) | |
tree | b05fa8b992d1bb3eff1a6e7da2bf2da35d60b995 /Examples | |
parent | c67e4dd06fa2ec562a22d2feff6e1446d4476ea7 (diff) | |
download | swig-1a31e9dc0cbcc458b241293a479123954f55f28c.tar.gz |
[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
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/java_director.i | 2 | ||||
-rw-r--r-- | Examples/test-suite/java_throws.i | 2 |
2 files changed, 2 insertions, 2 deletions
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(); |