gnodet-bot commented on code in PR #30799:
URL: https://github.com/apache/camel/pull/30799#discussion_r4698334264
##########
components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java:
##########
@@ -319,6 +319,11 @@ public String resolveOperation() {
return MNSOperations.SEND_MESSAGE;
}
+ /**
+ * @deprecated not used: the consumer receives the messages of the queue
without reading the operation option. To be
+ * removed in a future release.
+ */
+ @Deprecated(since = "4.24.0")
Review Comment:
💡 **Nit:** Same as `MNSOperations.RECEIVE_MESSAGE` above — consider
`forRemoval = true` to match the Javadoc's "To be removed in a future release"
intent.
```suggestion
@Deprecated(since = "4.24.0", forRemoval = true)
```
##########
components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/constants/MNSOperations.java:
##########
@@ -19,6 +19,11 @@
public final class MNSOperations {
public static final String SEND_MESSAGE = "sendMessage";
+ /**
+ * @deprecated receiveMessage is not an operation: the producer does not
support it, and the consumer receives the
+ * messages of the queue without reading the operation option.
To be removed in a future release.
+ */
+ @Deprecated(since = "4.24.0")
Review Comment:
💡 **Nit:** The Javadoc says "To be removed in a future release" — that's
exactly what `forRemoval = true` signals. Consider adding it so the compiler
can emit the more precise `removal` warning (instead of plain `deprecation`)
and IDEs can distinguish scheduled-for-removal APIs from ordinary deprecations.
```suggestion
@Deprecated(since = "4.24.0", forRemoval = true)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]