This is an automated email from the ASF dual-hosted git repository.
songkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 789775b Change CopyOnWriteArrayList to regular list in DubboProtocol
(#4056)
789775b is described below
commit 789775b3ae35d673028dd99e5251e92334ff14c3
Author: wavesZh <[email protected]>
AuthorDate: Wed May 15 11:05:48 2019 +0800
Change CopyOnWriteArrayList to regular list in DubboProtocol (#4056)
---
.../main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
index 2d993be..4782bbd 100644
---
a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
+++
b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
@@ -58,7 +58,6 @@ import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.CopyOnWriteArrayList;
import static org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.INTERFACE_KEY;
@@ -544,7 +543,7 @@ public class DubboProtocol extends AbstractProtocol {
* @return
*/
private List<ReferenceCountExchangeClient>
buildReferenceCountExchangeClientList(URL url, int connectNum) {
- List<ReferenceCountExchangeClient> clients = new
CopyOnWriteArrayList<>();
+ List<ReferenceCountExchangeClient> clients = new ArrayList<>();
for (int i = 0; i < connectNum; i++) {
clients.add(buildReferenceCountExchangeClient(url));