From: Matt Corallo Date: Wed, 26 Apr 2023 18:02:49 +0000 (+0000) Subject: [Java] Don't use `wait` as a method name as its reserved X-Git-Tag: v0.0.115.0~6 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=46763b974f120d1795fca6c1e757578784f3305a;p=ldk-java [Java] Don't use `wait` as a method name as its reserved --- diff --git a/java_strings.py b/java_strings.py index e788604e..a1599125 100644 --- a/java_strings.py +++ b/java_strings.py @@ -1340,6 +1340,8 @@ import javax.annotation.Nullable; extra_java_struct_out += "\t\tif (!(o instanceof " + struct_meth + ")) return false;\n" extra_java_struct_out += "\t\treturn this.eq((" + struct_meth + ")o);\n" extra_java_struct_out += "\t}\n" + if meth_n == "wait": + meth_n = "wait_indefinite" out_java_struct += ("\tpublic " + return_type_info.java_hu_ty + " " + meth_n + "(") for idx, arg in enumerate(argument_types): if idx != 0: