X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelFeatures.ts;h=c0be3bbad2c18daa8c3b20a82448ad614d04aab8;hb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;hp=46d2b861c70fe07384d69666042f51c2ca63e55e;hpb=56e9910ffaa7fccf2cb777dc9cf55e01a9681543;p=ldk-java diff --git a/ts/structs/ChannelFeatures.ts b/ts/structs/ChannelFeatures.ts index 46d2b861..c0be3bba 100644 --- a/ts/structs/ChannelFeatures.ts +++ b/ts/structs/ChannelFeatures.ts @@ -1,13 +1,21 @@ + import CommonBase from './CommonBase'; import * as bindings from '../bindings' // TODO: figure out location -public class ChannelFeatures extends CommonBase { - ChannelFeatures(Object _dummy, long ptr) { super(ptr); } - @Override @SuppressWarnings("deprecation") - protected void finalize() throws Throwable { - super.finalize(); - if (ptr != 0) { bindings.ChannelFeatures_free(ptr); } - } + + export default class ChannelFeatures extends CommonBase { + constructor(_dummy: object, ptr: number) { + super(ptr); + } + + + protected finalize() { + super.finalize(); + + if (this.ptr != 0) { + bindings.ChannelFeatures_free(this.ptr); + } + } }