Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
Update generated source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xianwen Chen committed Jul 17, 2018
1 parent b4d8d0f commit 28b6e91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ private CppProxy(long nativeRef)
}

private native void nativeDestroy(long nativeRef);
public void destroy()
public void _djinni_private_destroy()
{
boolean destroyed = this.destroyed.getAndSet(true);
if (!destroyed) nativeDestroy(this.nativeRef);
}
protected void finalize() throws java.lang.Throwable
{
destroy();
_djinni_private_destroy();
super.finalize();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
import javax.annotation.Nonnull;

/** Interface containing enum constant */
public abstract class ConstantInterfaceWithEnum {
public interface ConstantInterfaceWithEnum {
@Nonnull
public static final ConstantEnum CONST_ENUM = ConstantEnum.SOME_VALUE;
ConstantEnum CONST_ENUM = ConstantEnum.SOME_VALUE;


private static final class CppProxy extends ConstantInterfaceWithEnum
static final class CppProxy implements ConstantInterfaceWithEnum
{
private final long nativeRef;
private final AtomicBoolean destroyed = new AtomicBoolean(false);
Expand All @@ -25,14 +25,14 @@ private CppProxy(long nativeRef)
}

private native void nativeDestroy(long nativeRef);
public void destroy()
public void _djinni_private_destroy()
{
boolean destroyed = this.destroyed.getAndSet(true);
if (!destroyed) nativeDestroy(this.nativeRef);
}
protected void finalize() throws java.lang.Throwable
{
destroy();
_djinni_private_destroy();
super.finalize();
}
}
Expand Down

0 comments on commit 28b6e91

Please sign in to comment.