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

   Multiple clean ups for `warn` discovered via automatic tooling (different 
ones). No logic change.
   
   Types of clean up:
   1. Remove redundant imports
   2. Use bulk collection operations such as `putAll` instead of iteration
   3. Replace `Arrays.asList()` with `Collections.singletonList()`
   4. Remove String concatenation in a loop, use StringBuilder instead
   5. Replace `if` with `switch`
   6. Use `compare()` to compare integers
   7. Loop is replaces with `Collection.removeIf()`
   8. Replace StringBuffer with StringBuilder
   9. Replace `for` with enhanced `for` loop
   10. Replace redundant `Collection.addAll()` with parameterized constructor 
call
   11. Use `%d` with integers instead of `%s`
   12. Replace `String.equals("")` with `String.isEmpty()`
   13. Replace `Collections.sort()` with `List.sort()` where applicable
   14. Replace `System.getProperty("line.separator")` with 
`System.lineSeparator()`


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

Reply via email to