[Java] Map `LDKReadOnly*` the same as `LDKLocked*` ie via `AutoClosable`
[ldk-java] / typescript_strings.py
index 092a9e152631388dbd97c99f8d3ea064db7f989e..9e4cf192a1aa76abf604c1b3123d7265b9840e0c 100644 (file)
@@ -1199,7 +1199,7 @@ export class {struct_name.replace("LDK","")} extends CommonBase {{
 
         hu_name = struct_name.replace("LDKC2Tuple", "TwoTuple").replace("LDKC3Tuple", "ThreeTuple").replace("LDK", "")
         out_opaque_struct_human = f"{self.hu_struct_file_prefix}"
-        if struct_name.startswith("LDKLocked"):
+        if struct_name.startswith("LDKLocked") or struct_name.startswith("LDKReadOnly"):
             out_opaque_struct_human += "/** XXX: DO NOT USE THIS - it remains locked until the GC runs (if that ever happens */"
         formatted_doc_comment = struct_doc_comment.replace("\n", "\n * ")
         out_opaque_struct_human += f"""