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/11 17:05:37 UTC

(kafka) branch trunk updated: MINOR: suppress deprecation warnings for MemberDescription (#18139)

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 156d5516039 MINOR: suppress deprecation warnings for MemberDescription (#18139)
156d5516039 is described below

commit 156d5516039ce796c47dfd04093e1d495f233421
Author: PoAn Yang <pa...@apache.org>
AuthorDate: Thu Dec 12 01:05:31 2024 +0800

    MINOR: suppress deprecation warnings for MemberDescription (#18139)
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 .../org/apache/kafka/tools/consumer/group/ConsumerGroupServiceTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/src/test/java/org/apache/kafka/tools/consumer/group/ConsumerGroupServiceTest.java b/tools/src/test/java/org/apache/kafka/tools/consumer/group/ConsumerGroupServiceTest.java
index 7a134ac0c96..c292aa1c845 100644
--- a/tools/src/test/java/org/apache/kafka/tools/consumer/group/ConsumerGroupServiceTest.java
+++ b/tools/src/test/java/org/apache/kafka/tools/consumer/group/ConsumerGroupServiceTest.java
@@ -103,6 +103,7 @@ public class ConsumerGroupServiceTest {
     }
 
     @Test
+    @SuppressWarnings("deprecation")
     public void testAdminRequestsForDescribeNegativeOffsets() throws Exception {
         String[] args = new String[]{"--bootstrap-server", "localhost:9092", "--group", GROUP, "--describe", "--offsets"};
         ConsumerGroupCommand.ConsumerGroupService groupService = consumerGroupService(args);
@@ -232,6 +233,7 @@ public class ConsumerGroupServiceTest {
         };
     }
 
+    @SuppressWarnings("deprecation")
     private DescribeConsumerGroupsResult describeGroupsResult(GroupState groupState) {
         MemberDescription member1 = new MemberDescription("member1", Optional.of("instance1"), "client1", "host1", null);
         ConsumerGroupDescription description = new ConsumerGroupDescription(GROUP,