[ https://issues.apache.org/jira/browse/TUBEMQ-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guo Jiwei resolved TUBEMQ-101. ------------------------------ Fix Version/s: 0.5.0 Resolution: Fixed > Optimize code & Fix type > ------------------------ > > Key: TUBEMQ-101 > URL: https://issues.apache.org/jira/browse/TUBEMQ-101 > Project: Apache TubeMQ > Issue Type: Improvement > Reporter: viviel > Assignee: viviel > Priority: Low > Labels: pull-request-available > Fix For: 0.5.0 > > > 1. Optimize code > {code:java} > if (addrMap4Failover.get(tmpNodeAddrInfo.getHostPortStr()) == null) { > addrMap4Failover.put(tmpNodeAddrInfo.getHostPortStr(), > tmpNodeAddrInfo); > } > {code} > Change to > {code:java} > addrMap4Failover.putIfAbsent(tmpNodeAddrInfo.getHostPortStr(), > tmpNodeAddrInfo); > {code} > 2. Fix type > getParameteres -> getParameters > datestring -> dateString > setunFlushDataHold -> setUnflushDataHold > getunFlushDataHold -> getUnflushDataHold > Because I do n’t know whether it will affect other components, such as log > parsing, etc., I did not change it here > {code:java} > .append(",\"unFlushDataHold\":").append(getUnflushDataHold()) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)