From: Matt Corallo Date: Mon, 27 Jun 2022 19:32:01 +0000 (+0000) Subject: [Java] Do not put a org.ldk.structs prefix for usize types X-Git-Tag: v0.0.108.0^2~11 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=855c0e1f8e631e770e32836b7f969e91a3957c24;p=ldk-java [Java] Do not put a org.ldk.structs prefix for usize types --- diff --git a/java_strings.py b/java_strings.py index c4b84146..63774b5e 100644 --- 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