nizhikov commented on code in PR #15572: URL: https://github.com/apache/kafka/pull/15572#discussion_r1542439635
########## core/src/test/scala/integration/kafka/api/BaseAdminIntegrationTest.scala: ########## @@ -183,12 +184,13 @@ abstract class BaseAdminIntegrationTest extends IntegrationTestHarness with Logg //with includeAuthorizedOperations flag topicResult = getTopicMetadata(client, topic, new DescribeTopicsOptions().includeAuthorizedOperations(true)) - expectedOperations = AclEntry.supportedOperations(ResourceType.TOPIC).asJava + expectedOperations = AclEntry.supportedOperations(ResourceType.TOPIC) assertEquals(expectedOperations, topicResult.authorizedOperations) } + @nowarn("cat=deprecation") def configuredClusterPermissions: Set[AclOperation] = - AclEntry.supportedOperations(ResourceType.CLUSTER) + JavaConverters.asScalaSet(AclEntry.supportedOperations(ResourceType.CLUSTER)).toSet Review Comment: @ijuma You are correcty. Wonder how I missed this :) ########## core/src/test/scala/integration/kafka/api/BaseAdminIntegrationTest.scala: ########## @@ -183,12 +184,13 @@ abstract class BaseAdminIntegrationTest extends IntegrationTestHarness with Logg //with includeAuthorizedOperations flag topicResult = getTopicMetadata(client, topic, new DescribeTopicsOptions().includeAuthorizedOperations(true)) - expectedOperations = AclEntry.supportedOperations(ResourceType.TOPIC).asJava + expectedOperations = AclEntry.supportedOperations(ResourceType.TOPIC) assertEquals(expectedOperations, topicResult.authorizedOperations) } + @nowarn("cat=deprecation") def configuredClusterPermissions: Set[AclOperation] = - AclEntry.supportedOperations(ResourceType.CLUSTER) + JavaConverters.asScalaSet(AclEntry.supportedOperations(ResourceType.CLUSTER)).toSet Review Comment: @ijuma You are correct. Wonder how I missed this :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org