cmccabe commented on code in PR #12031:
URL: https://github.com/apache/kafka/pull/12031#discussion_r848909874


##########
clients/src/main/java/org/apache/kafka/common/resource/ResourcePattern.java:
##########
@@ -89,7 +89,7 @@ public ResourcePatternFilter toFilter() {
 
     @Override
     public String toString() {
-        return "ResourcePattern(resourceType=" + resourceType + ", name=" + 
((name == null) ? "<any>" : name) + ", patternType=" + patternType + ")";
+        return "ResourcePattern(resourceType=" + resourceType + ", name=" + 
name + ", patternType=" + patternType + ")";

Review Comment:
   Good catch. It's nice to not always have to check for null.
   
   I really wish we had removed null from ResourceFilterPatterns as well (but 
it's too late for that now, I guess...)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to