You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2022/04/21 01:34:05 UTC
[rocketmq] branch develop updated: Explicit type argument can be replaced with <> (#4186)
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 4f2b70817 Explicit type argument can be replaced with <> (#4186)
4f2b70817 is described below
commit 4f2b708179bf43bec8fa7cca5f6350bc929af307
Author: 李晓双 Li Xiao Shuang <64...@qq.com>
AuthorDate: Thu Apr 21 09:33:47 2022 +0800
Explicit type argument can be replaced with <> (#4186)
---
.../org/apache/rocketmq/common/protocol/route/TopicRouteData.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/src/main/java/org/apache/rocketmq/common/protocol/route/TopicRouteData.java b/common/src/main/java/org/apache/rocketmq/common/protocol/route/TopicRouteData.java
index e8f54b8d7..2d900398e 100644
--- a/common/src/main/java/org/apache/rocketmq/common/protocol/route/TopicRouteData.java
+++ b/common/src/main/java/org/apache/rocketmq/common/protocol/route/TopicRouteData.java
@@ -33,9 +33,9 @@ public class TopicRouteData extends RemotingSerializable {
public TopicRouteData cloneTopicRouteData() {
TopicRouteData topicRouteData = new TopicRouteData();
- topicRouteData.setQueueDatas(new ArrayList<QueueData>());
- topicRouteData.setBrokerDatas(new ArrayList<BrokerData>());
- topicRouteData.setFilterServerTable(new HashMap<String, List<String>>());
+ topicRouteData.setQueueDatas(new ArrayList<>());
+ topicRouteData.setBrokerDatas(new ArrayList<>());
+ topicRouteData.setFilterServerTable(new HashMap<>());
topicRouteData.setOrderTopicConf(this.orderTopicConf);
if (this.queueDatas != null) {