projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
587ee73
)
[Java] Use util method where possible
author
Matt Corallo
<git@bluematt.me>
Mon, 2 Jan 2023 00:23:23 +0000
(
00:23
+0000)
committer
Matt Corallo
<git@bluematt.me>
Wed, 11 Jan 2023 21:14:44 +0000
(21:14 +0000)
java_strings.py
patch
|
blob
|
history
diff --git
a/java_strings.py
b/java_strings.py
index c6905d1359f5f2f03e31e1c58b85b9f319d79c36..fcf9edd29e43cd331fd62c6217e5f5ead03542ee 100644
(file)
--- a/
java_strings.py
+++ b/
java_strings.py
@@
-1318,9
+1318,7
@@
import javax.annotation.Nullable;
else:
if arg.nullable:
out_java_struct += "@Nullable "
else:
if arg.nullable:
out_java_struct += "@Nullable "
- ty_string = arg.java_hu_ty
- if arg.java_fn_ty_arg[0] == "L" and arg.java_fn_ty_arg[len(arg.java_fn_ty_arg) - 1] == ";":
- ty_string = arg.java_fn_ty_arg.strip("L;").replace("/", ".")
+ ty_string = self.fully_qualified_hu_ty_path(arg)
out_java_struct += ty_string + " " + arg.arg_name
out_java += (");\n")
out_c += (") {\n")
out_java_struct += ty_string + " " + arg.arg_name
out_java += (");\n")
out_c += (") {\n")