viviel opened a new pull request #132: URL: https://github.com/apache/incubator-tubemq/pull/132
Optimize code ``` List<Message> messageList = new ArrayList<>(); if (transferedMessageList == null || transferedMessageList.isEmpty()) { return messageList; } change to if (transferedMessageList == null || transferedMessageList.isEmpty()) { return new ArrayList<>(); } List<Message> messageList = new ArrayList<>(transferedMessageList.size()); ``` ``` for (int i; i < 0; i++) {} change to for (Object o; objects) {} ``` ``` String.valueOf(consumerGroup).trim(); change to consumerGroup.trim(); ``` etc.. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org