Merge branch 'java9_finalize_warnings'
* java9_finalize_warnings: [Java] Suppress deprecation warning on finalize method
This commit is contained in:
commit
6d8c1c47f3
3 changed files with 3 additions and 0 deletions
|
|
@ -183,6 +183,7 @@ try {
|
|||
|
||||
// Need to handle the checked exception in NoExceptTest.delete()
|
||||
%typemap(javafinalize) SWIGTYPE %{
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
try {
|
||||
delete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue