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
|
|
@ -7,6 +7,7 @@
|
|||
%module(directors="1") java_director
|
||||
|
||||
%typemap(javafinalize) SWIGTYPE %{
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
// System.out.println("Finalizing " + this);
|
||||
delete();
|
||||
|
|
|
|||
|
|
@ -183,6 +183,7 @@ try {
|
|||
|
||||
// Need to handle the checked exception in NoExceptTest.delete()
|
||||
%typemap(javafinalize) SWIGTYPE %{
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
try {
|
||||
delete();
|
||||
|
|
|
|||
|
|
@ -1273,6 +1273,7 @@ SWIG_JAVABODY_PROXY(protected, protected, SWIGTYPE)
|
|||
SWIG_JAVABODY_TYPEWRAPPER(protected, protected, protected, SWIGTYPE)
|
||||
|
||||
%typemap(javafinalize) SWIGTYPE %{
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue