Skip to content

Commit b51682c

Browse files
Update RPC generator to replce @deprecated with @property-deprecated
1 parent 464813c commit b51682c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

generator/templates/base_template.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* <td>{%- for d in param.description %}{{d}}{%- endfor %}</td>
6464
* <td>{%- if param.mandatory is eq true %}Y{%- else %}N{%- endif %}</td>
6565
* <td>{%- for k in param.values %}{{ '{' if loop.first}}"{{k}}": {{param.values[k]}}{{ ', ' if not loop.last else '}'}}{%- endfor %}</td>
66-
{%- if param.since is defined and param.since is not none %}{% set see, deprecated, since, history, spacing = param.see, param.deprecated, param.since, param.history, ' * ' %}
66+
{%- if param.since is defined and param.since is not none %}{% set see, deprecated, since, history, spacing, headerParam = param.see, param.deprecated, param.since, param.history, ' * ', 'true' %}
6767
* <td>
6868
{%- include "javadoc_version_info.java" %}
6969
* </td>

generator/templates/javadoc_version_info.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
{%- endif %}
55
{%- if deprecated is defined and deprecated is not none %}
66
{{spacing}}{{prefix}}@since SmartDeviceLink {{history[0].since}}
7+
{%- if headerParam is defined and headerParam is not none %}
8+
{{spacing}}{{prefix}}@property-deprecated in SmartDeviceLink {{since}}
9+
{%- else %}
710
{{spacing}}{{prefix}}@deprecated in SmartDeviceLink {{since}}
11+
{%- endif %}
812
{%- elif history is defined and history is not none %}
913
{{spacing}}{{prefix}}@since SmartDeviceLink {{history[0].since}}
1014
{%- else %}

0 commit comments

Comments
 (0)