diff options
| author | levlam <levlam@telegram.org> | 2022-09-08 15:40:09 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-09-08 15:40:09 +0300 |
| commit | bc950bc5432e438fb7b73a6bd7334d7d097da1d2 (patch) | |
| tree | bd57fc11ef7d22e9aa2df2e6eefcb59a592938fe /td/generate/JavadocTlDocumentationGenerator.php | |
| parent | 4d5625a06fbd9ea546f69e83ac6381133a998389 (diff) | |
Add explicit default constructors to abstract Java classes.
Diffstat (limited to 'td/generate/JavadocTlDocumentationGenerator.php')
| -rw-r--r-- | td/generate/JavadocTlDocumentationGenerator.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/td/generate/JavadocTlDocumentationGenerator.php b/td/generate/JavadocTlDocumentationGenerator.php index 922cf2151..103207522 100644 --- a/td/generate/JavadocTlDocumentationGenerator.php +++ b/td/generate/JavadocTlDocumentationGenerator.php @@ -143,6 +143,13 @@ EOT EOT ); + $this->addDocumentation(" public Object() {", <<<EOT + /** + * Default Object constructor. + */ +EOT +); + $this->addDocumentation(' public abstract int getConstructor();', <<<EOT /** * @return identifier uniquely determining type of the object. @@ -164,6 +171,13 @@ EOT EOT ); + $this->addDocumentation(" public Function() {", <<<EOT + /** + * Default Function constructor. + */ +EOT +); + $this->addDocumentation(' public static final int CONSTRUCTOR', <<<EOT /** * Identifier uniquely determining type of the object. @@ -188,6 +202,12 @@ EOT */ EOT ); + $this->addDocumentation(" public $class_name() {", <<<EOT + /** + * Default class constructor. + */ +EOT +); } protected function getFunctionReturnTypeDescription($return_type, $for_constructor) |
