projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b288575
)
[Java] Do not put a org.ldk.structs prefix for usize types
author
Matt Corallo
<git@bluematt.me>
Mon, 27 Jun 2022 19:32:01 +0000
(19:32 +0000)
committer
Matt Corallo
<git@bluematt.me>
Wed, 29 Jun 2022 15:53:54 +0000
(15:53 +0000)
java_strings.py
patch
|
blob
|
history
diff --git
a/java_strings.py
b/java_strings.py
index c4b84146d7805ad7de314143600432fb398e6e8b..63774b5e2df556630614e3f5daf06bae8a083e1c 100644
(file)
--- a/
java_strings.py
+++ b/
java_strings.py
@@
-708,7
+708,7
@@
import javax.annotation.Nullable;
return ty.java_fn_ty_arg.strip("L;").replace("/", ".")
if ty.java_hu_ty == "UnqualifiedError" or ty.java_hu_ty == "UInt5" or ty.java_hu_ty == "WitnessVersion":
return "org.ldk.util." + ty.java_hu_ty
- if ty.rust_obj is not None and not "[]" in ty.java_hu_ty:
+ if
not ty.is_native_primitive and
ty.rust_obj is not None and not "[]" in ty.java_hu_ty:
return "org.ldk.structs." + ty.java_hu_ty
return ty.java_hu_ty