Fix Java build.

This commit is contained in:
levlam 2024-01-24 21:35:50 +03:00
parent b8799a7e8c
commit 7628646b63

View File

@ -105,10 +105,7 @@ std::string TD_TL_writer_jni_h::gen_class_begin(const std::string &class_name, c
" virtual void store(TlStorerToString &s, const char *field_name) const = 0;\n\n" " virtual void store(TlStorerToString &s, const char *field_name) const = 0;\n\n"
" static jclass Class;\n"; " static jclass Class;\n";
} }
return "class " + class_name + (!is_proxy ? " final " : "") + ": public " + base_class_name + return TD_TL_writer_h::gen_class_begin(class_name, base_class_name, is_proxy, result) + " static jclass Class;\n";
" {\n"
" public:\n"
" static jclass Class;\n";
} }
std::string TD_TL_writer_jni_h::gen_field_definition(const std::string &class_name, const std::string &type_name, std::string TD_TL_writer_jni_h::gen_field_definition(const std::string &class_name, const std::string &type_name,