You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2024/12/12 23:57:36 UTC
(kafka) branch trunk updated: MINOR: ensure SuppressWarnings annotation is effective for mockValidationIsolation (#18158)
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 92352a96e86 MINOR: ensure SuppressWarnings annotation is effective for mockValidationIsolation (#18158)
92352a96e86 is described below
commit 92352a96e86a13dc126e38c31a18c6365600382f
Author: Logan Zhu <lo...@outlook.com>
AuthorDate: Fri Dec 13 07:57:29 2024 +0800
MINOR: ensure SuppressWarnings annotation is effective for mockValidationIsolation (#18158)
Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
.../test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java b/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java
index 61a69842d55..01a9bcf6373 100644
--- a/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java
+++ b/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java
@@ -1278,7 +1278,7 @@ public class AbstractHerderTest {
.defaultAnswer(CALLS_REAL_METHODS));
}
- @SuppressWarnings("unchecked, rawtypes")
+ @SuppressWarnings({"unchecked", "rawtypes"})
private void mockValidationIsolation(String connectorClass, Connector connector) {
when(workerConfig.getClass(WorkerConfig.HEADER_CONVERTER_CLASS_CONFIG)).thenReturn((Class) SimpleHeaderConverter.class);
when(worker.config()).thenReturn(workerConfig);