[
https://issues.apache.org/jira/browse/CAMEL-27420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-27420.
---------------------------------
Resolution: Fixed
Fixed by https://github.com/apache/camel/pull/30678 (merged as e181d55396).
> camel-alibaba-ots, camel-alibaba-sls: the exchange property constants carry
> @Metadata annotations that nothing reads
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27420
> URL: https://issues.apache.org/jira/browse/CAMEL-27420
> Project: Camel
> Issue Type: Improvement
> Reporter: Saravanakumar Selvaraj
> Priority: Minor
> Fix For: 4.24.0
>
>
> AlibabaOtsProperties and AlibabaSlsProperties hold the names of the exchange
> properties of the two components. Each of their constants has a @Metadata
> annotation: 2 in AlibabaOtsProperties and 17 in AlibabaSlsProperties.
> No part of the Camel build reads these 19 annotations. The build takes the
> metadata of the headers from the headersClass of @UriEndpoint. That is
> AlibabaOtsHeaders and AlibabaSlsHeaders, and each of their constants has its
> own @Metadata annotation. So the component JSON, the Endpoint DSL and the doc
> pages contain none of the 19 texts.
> CAMEL-23832 rewrote the descriptions of the two header classes. The 19 texts
> of the property classes are still the first ones, for example "Operation to
> perform". A reader of the code can take them for the documented texts.
> The property classes of fc, kms, mns, oss and sms have no @Metadata
> annotation.
> Proposed change: remove the 19 annotations and the import of Metadata from
> the two classes. No generated file changes.
> _Claude Code on behalf of saravanakumar1987_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)