Java documentation generator improvements.
GitOrigin-RevId: 7c63fd8d816707b45fdee5b852a16e64a084df58
This commit is contained in:
parent
62512c4db0
commit
2fdf013504
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user