Merge branch 'java9_finalize_warnings'

* java9_finalize_warnings:
  [Java] Suppress deprecation warning on finalize method
This commit is contained in:
William S Fulton 2019-02-21 13:46:59 -08:00
commit 6d8c1c47f3
3 changed files with 3 additions and 0 deletions

View file

@ -183,6 +183,7 @@ try {
// Need to handle the checked exception in NoExceptTest.delete()
%typemap(javafinalize) SWIGTYPE %{
@SuppressWarnings("deprecation")
protected void finalize() {
try {
delete();