Commit 28b6e911 authored by Xianwen Chen's avatar Xianwen Chen

Update generated source code

parent b4d8d0f1
......@@ -36,14 +36,14 @@ import javax.annotation.Nonnull;
}
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();
}
......
......@@ -8,12 +8,12 @@ import javax.annotation.CheckForNull;
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);
......@@ -25,14 +25,14 @@ public abstract class ConstantInterfaceWithEnum {
}
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();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment