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 /Lib | |
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 'Lib')
-rw-r--r-- | Lib/java/java.swg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/java/java.swg b/Lib/java/java.swg index 1c1a56e69..c35876534 100644 --- a/Lib/java/java.swg +++ b/Lib/java/java.swg @@ -1304,7 +1304,7 @@ SWIG_JAVABODY_PROXY(protected, protected, SWIGTYPE) SWIG_JAVABODY_TYPEWRAPPER(protected, protected, protected, SWIGTYPE) %typemap(javafinalize) SWIGTYPE %{ - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", "removal"}) protected void finalize() { delete(); } |