[Java] Suppress deprecation warning on finalize method
Java 9 deprecates the finalize method. For now just suppress the deprecation warning. Fixes #1237
This commit is contained in:
parent
d612c6a835
commit
db34df38f3
3 changed files with 3 additions and 0 deletions
|
|
@ -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