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