Java documentation generator improvements.

GitOrigin-RevId: 7c63fd8d816707b45fdee5b852a16e64a084df58
This commit is contained in:
levlam 2018-06-25 17:23:56 +03:00
parent 62512c4db0
commit 2fdf013504
3 changed files with 10 additions and 2 deletions

View File

@ -294,6 +294,14 @@ EOT
* \\return this->ID.
*/
EOT
);
$this->addDocumentation(' virtual std::int32_t get_id() const = 0;', <<<EOT
/**
* Returns identifier uniquely determining a type of the object.
* \\return this->ID.
*/
EOT
);
$this->addDocumentation(' using ReturnType', <<<EOT

View File

@ -208,7 +208,7 @@ EOT
EOT
);
if ($may_be_null && $this->nullable_annotation && ($this->java_version >= 8 || substr($type_name, -1) != ']')) {
$this->addLineReplacement($full_line, " public $this->nullable_annotation $type_name $field_name;".PHP_EOL);
$this->addLineReplacement($full_line, " $this->nullable_annotation public $type_name $field_name;".PHP_EOL);
}
}

View File

@ -337,7 +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 this.CONSTRUCTOR;\n"
" return " + class_name + ".CONSTRUCTOR;\n"
" }\n";
}