From: Matt Corallo Date: Sat, 8 Jan 2022 03:55:05 +0000 (+0000) Subject: [TS] Drop references to `this` in static `UtilMethods` functions X-Git-Tag: v0.0.104.1~1^2~5 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=4d2111e2f13bfd96b21761284d1937dcf78691ed;p=ldk-java [TS] Drop references to `this` in static `UtilMethods` functions --- diff --git a/genbindings.py b/genbindings.py index 06827cf0..5fd20628 100755 --- a/genbindings.py +++ b/genbindings.py @@ -536,7 +536,7 @@ with open(sys.argv[1]) as in_h, open(f"{sys.argv[2]}/bindings{consts.file_ext}", or method_name.endswith("_read"))): out_java_struct = open(f"{sys.argv[3]}/structs/UtilMethods{consts.file_ext}", "a") for line in out_java_struct_delta.splitlines(): - if not line.strip().startswith("this."): + if "this" not in line: out_java_struct.write(line + "\n") else: out_java_struct.write("\t\t// " + line.strip() + "\n")