Kuangcp/JavaBase

View on GitHub
kafka/src/main/java/com/github/kuangcp/hi/ProducerDemo.java

Summary

Maintainability
A
1 hr
Test Coverage

Method sendCommand has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static void sendCommand() {
    Producer<String, String> producer = null;
    HashSet<ProductStatisticSpan> spans = new HashSet<>();
    spans.add(ProductStatisticSpan.MONTH);

Severity: Minor
Found in kafka/src/main/java/com/github/kuangcp/hi/ProducerDemo.java - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status