This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new ae03a1e456b MINOR: Fix outdated Javadoc link in
AuthorizableRequestContext (#22230)
ae03a1e456b is described below
commit ae03a1e456bb0ee101c6d2568501869c2be9d7ab
Author: JiayƔo Sun <[email protected]>
AuthorDate: Sun May 10 02:54:02 2026 +1200
MINOR: Fix outdated Javadoc link in AuthorizableRequestContext (#22230)
The Javadoc for `AuthorizableRequestContext#requestType()` contained a
broken link (`https://kafka.apache.org/protocol#protocol_api_keys`)
that no longer resolves to the correct anchor after the documentation
site restructure.
This patch updates it to the current working URL and improves the
Javadoc wording for both `requestType()` and `requestVersion()`.
Reviewers: Chia-Ping Tsai <[email protected]>
---
.../kafka/server/authorizer/AuthorizableRequestContext.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/clients/src/main/java/org/apache/kafka/server/authorizer/AuthorizableRequestContext.java
b/clients/src/main/java/org/apache/kafka/server/authorizer/AuthorizableRequestContext.java
index c560d58ca93..2508fd7f789 100644
---
a/clients/src/main/java/org/apache/kafka/server/authorizer/AuthorizableRequestContext.java
+++
b/clients/src/main/java/org/apache/kafka/server/authorizer/AuthorizableRequestContext.java
@@ -49,13 +49,16 @@ public interface AuthorizableRequestContext {
InetAddress clientAddress();
/**
- * 16-bit API key of the request from the request header. See
- * https://kafka.apache.org/protocol#protocol_api_keys for request types.
+ * Returns the 16-bit API key ({@code request_api_key}) from the request
header.
+ * @see <a
href="https://github.com/apache/kafka/blob/trunk/clients/src/main/resources/common/message/RequestHeader.json#L29-L30">RequestHeader.json</a>
+ *
*/
int requestType();
/**
- * Returns the request version from the request header.
+ * Returns the 16-bit API version ({@code request_api_version}) from the
request header.
+ * @see <a
href="https://github.com/apache/kafka/blob/trunk/clients/src/main/resources/common/message/RequestHeader.json#L31-L32">RequestHeader.json</a>
+ *
*/
int requestVersion();