Use AutoCloseable for structs named Locked*
[ldk-java] / src / main / java / org / ldk / structs / UnsignedNodeAnnouncement.java
index 828432ec2c6685c23c3f020e83ccb3caf7c8954c..adee1f6653b70ba742079136bc24ed18014256c9 100644 (file)
@@ -7,7 +7,8 @@ public class UnsignedNodeAnnouncement extends CommonBase {
        UnsignedNodeAnnouncement(Object _dummy, long ptr) { super(ptr); }
        @Override @SuppressWarnings("deprecation")
        protected void finalize() throws Throwable {
-               bindings.UnsignedNodeAnnouncement_free(ptr); super.finalize();
+               super.finalize();
+               bindings.UnsignedNodeAnnouncement_free(ptr);
        }
 
        public UnsignedNodeAnnouncement(UnsignedNodeAnnouncement orig) {
@@ -21,12 +22,7 @@ public class UnsignedNodeAnnouncement extends CommonBase {
                return ret;
        }
 
-       public void set_features(UnsignedNodeAnnouncement this_ptr, NodeFeatures val) {
-               bindings.UnsignedNodeAnnouncement_set_features(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
-               this.ptrs_to.add(this_ptr);
-               this.ptrs_to.add(val);
-       }
-
+       // Skipped UnsignedNodeAnnouncement_set_features
        public int get_timestamp(UnsignedNodeAnnouncement this_ptr) {
                int ret = bindings.UnsignedNodeAnnouncement_get_timestamp(this_ptr == null ? 0 : this_ptr.ptr & ~1);
                this.ptrs_to.add(this_ptr);