Last active
January 28, 2020 19:26
-
-
Save vladimir-bukhtoyarov/903561eb2940dafedfb4209ef5ad4530 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeWrapper { | |
private final long nativeAddress; | |
public SomeWrapper(long nativeAddress) { | |
this.nativeAddress = nativeAddress; | |
} | |
protected void finalize() throws Throwable { | |
deleteNativeObject0(); | |
} | |
public void doSomethingInNative() { | |
doSomethingInNative0(nativeAddress) | |
} | |
private final void deleteNativeObject0(); | |
private final void doSomethingInNative0(int nativeAddress); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment