Browse Source

MINOR: Fix Connect compatibility javadocs to use NoSuchMethodError instead of NoSuchMethodException (#14036)

Reviewed-by: Greg Harris <greg.harris@aiven.io>
pull/14051/head
Yash Mayya 1 year ago committed by GitHub
parent
commit
a68281bf3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java
  2. 2
      connect/api/src/main/java/org/apache/kafka/connect/source/SourceTaskContext.java

2
connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTaskContext.java

@ -105,7 +105,7 @@ public interface SinkTaskContext { @@ -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;

2
connect/api/src/main/java/org/apache/kafka/connect/source/SourceTaskContext.java

@ -46,7 +46,7 @@ public interface SourceTaskContext { @@ -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;

Loading…
Cancel
Save