@@ -43,7 +43,11 @@ public final class {{ my_class_name }} {
4343 {% - for attribute in ctx .attributes | rejectattr ("name" , "in" , ctx .excluded_attributes ) | rejectattr ("type" , "eq" , "any" ) -%}
4444 {% - if attribute is experimental -%}
4545 {% - if attribute is deprecated -%}
46- {% - set deprecated_javadoc = "@deprecated " ~ attribute .deprecated .note -%}
46+ {% - if attribute .deprecated .note == "Uncategorized." -%}
47+ {% - set deprecated_javadoc = "@deprecated" -%}
48+ {% - else -%}
49+ {% - set deprecated_javadoc = "@deprecated " ~ attribute .deprecated .note -%}
50+ {% - endif -%}
4751 {% - else -%}
4852 {% - set deprecated_javadoc = "" -%}
4953 {% - endif -%}
@@ -80,7 +84,11 @@ public final class {{ my_class_name }} {
8084 * @deprecated deprecated in favor of stable {@link {{stable_class_link}}}.
8185 */
8286 {% - elif attribute is deprecated -%}
83- {{ ["Values for {@link #" ~ attribute.name | screaming_snake_case ~ "}", "@deprecated " ~ attribute.deprecated.note ] | comment }}
87+ {% - if attribute .deprecated .note == "Uncategorized." -%}
88+ {{ ["Values for {@link #" ~ attribute.name | screaming_snake_case ~ "}", "@deprecated"] | comment }}
89+ {% - else -%}
90+ {{ ["Values for {@link #" ~ attribute.name | screaming_snake_case ~ "}", "@deprecated " ~ attribute.deprecated.note ] | comment }}
91+ {% - endif -%}
8492 {% - else -%}
8593 /** Values for {@link #{{ attribute.name | screaming_snake_case }}}. */
8694 {% - endif -%}
@@ -90,7 +98,11 @@ public final class {{ my_class_name }} {
9098 public static final class {{ attribute.name | pascal_case }}IncubatingValues {
9199 {% - for member in attribute .type .members %}
92100 {% - if member is experimental and member is deprecated -%}
93- {{ [member.brief or (member.id ~ '.'), "@deprecated " ~ member.deprecated.note] | comment }}
101+ {% - if member .deprecated .note == "Uncategorized." -%}
102+ {{ [member.brief or (member.id ~ '.'), "@deprecated"] | comment }}
103+ {% - else -%}
104+ {{ [member.brief or (member.id ~ '.'), "@deprecated " ~ member.deprecated.note] | comment }}
105+ {% - endif -%}
94106 @Deprecated public static final {{ attribute.type | instantiated_type | map_text("java_enum_type") }} {{ member.id | screaming_snake_case }} = {{ member.value | print_member_value }};
95107 {% elif member is experimental or enum_deprecated_in_favor_of_stable .value %}
96108 {{ [member.brief or (member.id ~ '.')] | comment }}
0 commit comments