You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by gh...@apache.org on 2023/07/19 17:23:09 UTC

[kafka] branch trunk updated: MINOR: Fix Connect compatibility javadocs to use NoSuchMethodError instead of NoSuchMethodException (#14036)

This is an automated email from the ASF dual-hosted git repository.

gharris 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 a68281bf3c7 MINOR: Fix Connect compatibility javadocs to use NoSuchMethodError instead of NoSuchMethodException (#14036)
a68281bf3c7 is described below

commit a68281bf3c72dd895b7c4c387ffa3ce494dd9ff3
Author: Yash Mayya <ya...@gmail.com>
AuthorDate: Wed Jul 19 18:23:02 2023 +0100

    MINOR: Fix Connect compatibility javadocs to use NoSuchMethodError instead of NoSuchMethodException (#14036)
    
    Reviewed-by: Greg Harris <gr...@aiven.io>
---
 .../src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java    | 2 +-
 .../main/java/org/apache/kafka/connect/source/SourceTaskContext.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java b/connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java
index b09c0d5c9b3..35daae54530 100644
--- a/connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java
+++ b/connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java
@@ -105,7 +105,7 @@ public interface SinkTaskContext {
      * This method was added in Apache Kafka 2.6. Sink tasks that use this method but want to
      * maintain backward compatibility so they can also be deployed to older Connect runtimes
      * should guard the call to this method with a try-catch block, since calling this method will result in a
-     * {@link NoSuchMethodException} or {@link NoClassDefFoundError} when the sink connector is deployed to
+     * {@link NoSuchMethodError} or {@link NoClassDefFoundError} when the sink connector is deployed to
      * Connect runtimes older than Kafka 2.6. For example:
      * <pre>
      *     ErrantRecordReporter reporter;
diff --git a/connect/api/src/main/java/org/apache/kafka/connect/source/SourceTaskContext.java b/connect/api/src/main/java/org/apache/kafka/connect/source/SourceTaskContext.java
index 879c5c071dc..e90b4b11e24 100644
--- a/connect/api/src/main/java/org/apache/kafka/connect/source/SourceTaskContext.java
+++ b/connect/api/src/main/java/org/apache/kafka/connect/source/SourceTaskContext.java
@@ -46,7 +46,7 @@ public interface SourceTaskContext {
      * <p>This method was added in Apache Kafka 3.2. Source tasks that use this method but want to
      * maintain backward compatibility so they can also be deployed to older Connect runtimes
      * should guard the call to this method with a try-catch block, since calling this method will result in a
-     * {@link NoSuchMethodException} or {@link NoClassDefFoundError} when the source connector is deployed to
+     * {@link NoSuchMethodError} or {@link NoClassDefFoundError} when the source connector is deployed to
      * Connect runtimes older than Kafka 3.2. For example:
      * <pre>
      *     TransactionContext transactionContext;