From 174dc93c464277472174fe75d5c37e93220a76bf Mon Sep 17 00:00:00 2001 From: Yash Mayya Date: Tue, 18 Jul 2023 15:39:58 +0530 Subject: [PATCH] MINOR: Fix Javadocs for SourceTaskContext::transactionContext and SinkTaskContext::errantRecordReporter to use NoSuchMethodError instead of NoSuchMethodException --- .../java/org/apache/kafka/connect/sink/SinkTaskContext.java | 2 +- .../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 b09c0d5c9b388..35daae5453043 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: *
      *     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 879c5c071dcf3..e90b4b11e24de 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 {
      * 

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: *

      *     TransactionContext transactionContext;