Skip to content

Commit

Permalink
Merge pull request apache#3206 from zongtanghu/develop_fix_4.9.1_code…
Browse files Browse the repository at this point in the history
…style

[Issue3205]Fix the issue of check style in client and broker modules.
  • Loading branch information
duhenglucky authored Aug 1, 2021
2 parents 5e58893 + 73db297 commit ec985ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Random;
import org.apache.rocketmq.broker.BrokerController;
import org.apache.rocketmq.broker.mqtrace.SendMessageContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class RequestFutureTable {
private static InternalLogger log = ClientLogger.getLog();
private static ConcurrentHashMap<String, RequestResponseFuture> requestFutureTable = new ConcurrentHashMap<String, RequestResponseFuture>();
private static final AtomicInteger producerNum = new AtomicInteger(0);
private static final AtomicInteger PRODUCER_NUM = new AtomicInteger(0);

public static ConcurrentHashMap<String, RequestResponseFuture> getRequestFutureTable() {
return requestFutureTable;
Expand Down Expand Up @@ -64,6 +64,6 @@ public static void scanExpiredRequest() {
}

public static AtomicInteger getProducerNum() {
return producerNum;
return PRODUCER_NUM;
}
}

0 comments on commit ec985ee

Please sign in to comment.