Merge pull request #2 from TheBlueMatt/main
[ldk-java] / src / main / java / org / ldk / structs / Pong.java
index ef636e284961a5c9b7684ddc069c2661061b615e..80530aa7d5342ffc9bd25e2c4b499d588ab17acd 100644 (file)
@@ -14,13 +14,6 @@ public class Pong extends CommonBase {
                if (ptr != 0) { bindings.Pong_free(ptr); }
        }
 
-       public Pong clone() {
-               long ret = bindings.Pong_clone(this.ptr);
-               Pong ret_hu_conv = new Pong(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
        public short get_byteslen() {
                short ret = bindings.Pong_get_byteslen(this.ptr);
                return ret;
@@ -37,6 +30,13 @@ public class Pong extends CommonBase {
                return ret_hu_conv;
        }
 
+       public Pong clone() {
+               long ret = bindings.Pong_clone(this.ptr);
+               Pong ret_hu_conv = new Pong(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        public byte[] write() {
                byte[] ret = bindings.Pong_write(this.ptr);
                return ret;