Merge pull request #2 from TheBlueMatt/main
[ldk-java] / src / main / java / org / ldk / structs / DataLossProtect.java
index 63db5eef41e4c627b6438f7d2efca0dfecd1ba6e..4d0e79d4921dfa4bc9e495186cf4fa6132633046 100644 (file)
@@ -14,13 +14,6 @@ public class DataLossProtect extends CommonBase {
                if (ptr != 0) { bindings.DataLossProtect_free(ptr); }
        }
 
-       public DataLossProtect clone() {
-               long ret = bindings.DataLossProtect_clone(this.ptr);
-               DataLossProtect ret_hu_conv = new DataLossProtect(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
        public byte[] get_your_last_per_commitment_secret() {
                byte[] ret = bindings.DataLossProtect_get_your_last_per_commitment_secret(this.ptr);
                return ret;
@@ -46,4 +39,11 @@ public class DataLossProtect extends CommonBase {
                return ret_hu_conv;
        }
 
+       public DataLossProtect clone() {
+               long ret = bindings.DataLossProtect_clone(this.ptr);
+               DataLossProtect ret_hu_conv = new DataLossProtect(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }