From 231c00ed9f82ced7d1cadfa6d68b5c428e524689 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 24 Jun 2018 21:22:51 +0300 Subject: [PATCH] Java: return this.CONSTRUCTOR from getConstructor. GitOrigin-RevId: 152401286b24ec03a25339f3a704cbe2923e9b44 --- td/generate/tl_writer_java.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/td/generate/tl_writer_java.cpp b/td/generate/tl_writer_java.cpp index e243384e..313a6488 100644 --- a/td/generate/tl_writer_java.cpp +++ b/td/generate/tl_writer_java.cpp @@ -337,9 +337,7 @@ std::string TD_TL_writer_java::gen_get_id(const std::string &class_name, std::in ";\n\n" " @Override\n" " public int getConstructor() {\n" - " return " + - int_to_string(id) + - ";\n" + " return this.CONSTRUCTOR;\n" " }\n"; }