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;