mirror of https://github.com/apache/kafka.git
MINOR: suppress deprecation warnings for MemberDescription (#18139)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
23de98cdc5
commit
156d551603
|
@ -103,6 +103,7 @@ public class ConsumerGroupServiceTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public void testAdminRequestsForDescribeNegativeOffsets() throws Exception {
|
public void testAdminRequestsForDescribeNegativeOffsets() throws Exception {
|
||||||
String[] args = new String[]{"--bootstrap-server", "localhost:9092", "--group", GROUP, "--describe", "--offsets"};
|
String[] args = new String[]{"--bootstrap-server", "localhost:9092", "--group", GROUP, "--describe", "--offsets"};
|
||||||
ConsumerGroupCommand.ConsumerGroupService groupService = consumerGroupService(args);
|
ConsumerGroupCommand.ConsumerGroupService groupService = consumerGroupService(args);
|
||||||
|
@ -232,6 +233,7 @@ public class ConsumerGroupServiceTest {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private DescribeConsumerGroupsResult describeGroupsResult(GroupState groupState) {
|
private DescribeConsumerGroupsResult describeGroupsResult(GroupState groupState) {
|
||||||
MemberDescription member1 = new MemberDescription("member1", Optional.of("instance1"), "client1", "host1", null);
|
MemberDescription member1 = new MemberDescription("member1", Optional.of("instance1"), "client1", "host1", null);
|
||||||
ConsumerGroupDescription description = new ConsumerGroupDescription(GROUP,
|
ConsumerGroupDescription description = new ConsumerGroupDescription(GROUP,
|
||||||
|
|
Loading…
Reference in New Issue