[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / MonitorUpdateId.java
index 89929f9608b74ffc677b1ffde8639cd7f1b07726..c3dac9e401808578d53420b57d9f8de7a3664148 100644 (file)
@@ -33,8 +33,8 @@ public class MonitorUpdateId extends CommonBase {
                long ret = bindings.MonitorUpdateId_clone(this.ptr);
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
-               MonitorUpdateId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new MonitorUpdateId(null, ret); }
-               ret_hu_conv.ptrs_to.add(this);
+               org.ldk.structs.MonitorUpdateId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MonitorUpdateId(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }
 
@@ -56,10 +56,10 @@ public class MonitorUpdateId extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(MonitorUpdateId b) {
-               boolean ret = bindings.MonitorUpdateId_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               boolean ret = bindings.MonitorUpdateId_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
-               this.ptrs_to.add(b);
+               if (this != null) { this.ptrs_to.add(b); };
                return ret;
        }