Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoran10 committed Jun 26, 2023
1 parent 6286221 commit 8e9dc64
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ public CompletableFuture<Boolean> canConsumeAsync(KafkaPrincipal principal, Reso
topicName, principal.getName(), principal.getAuthenticationData(), "");
}

private void checkResourceType(Resource resource, ResourceType expectedResourceType) {
if (resource.getResourceType() != expectedResourceType) {
private void checkResourceType(Resource actual, ResourceType expected) {
if (actual.getResourceType() != expected) {
throw new IllegalArgumentException(
String.format("Expected resource type is [%s], but have [%s]",
expectedResourceType, resource.getResourceType()));
expected, actual.getResourceType()));
}
}

Expand Down

0 comments on commit 8e9dc64

Please sign in to comment.