sunm2n opened a new pull request, #23344:
URL: https://github.com/apache/kafka/pull/23344

   ConfigCommand already uses Set.of() elsewhere in the same file, for example 
in the listConfigResources calls. 
   This replaces the two remaining Collections.singleton() usages for 
consistency, 
   and removes the java.util.Collections import that is no longer needed.
   
   Set.of() rejects null elements, but both call sites pass a freshly 
constructed object, so the replacement is safe here.
   
   Verification
   - ./gradlew tools:test --tests ConfigCommandTest — 63 tests, 0 failures
   - ./gradlew tools:checkstyleMain tools:checkstyleTest tools:spotlessCheck — 
passed


-- 
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