Skip to content

Instantly share code, notes, and snippets.

@vladimir-bukhtoyarov
Last active January 28, 2020 19:26
Show Gist options
  • Save vladimir-bukhtoyarov/903561eb2940dafedfb4209ef5ad4530 to your computer and use it in GitHub Desktop.
Save vladimir-bukhtoyarov/903561eb2940dafedfb4209ef5ad4530 to your computer and use it in GitHub Desktop.
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