projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
569f3d9
)
[Java] Don't use `wait` as a method name as its reserved
author
Matt Corallo
<git@bluematt.me>
Wed, 26 Apr 2023 18:02:49 +0000
(18:02 +0000)
committer
Matt Corallo
<git@bluematt.me>
Wed, 26 Apr 2023 18:02:49 +0000
(18:02 +0000)
java_strings.py
patch
|
blob
|
history
diff --git
a/java_strings.py
b/java_strings.py
index e788604e77aa2022c7468984e215cc1a02a9c817..a15991259093dca37b18c24ff2af5cc54581df7a 100644
(file)
--- 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: