You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by il...@apache.org on 2019/07/10 02:34:54 UTC

[dubbo-samples] branch master updated: return copy to avoid potential ConcurrentModification

This is an automated email from the ASF dual-hosted git repository.

iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new c0a79fd  return copy to avoid potential ConcurrentModification
c0a79fd is described below

commit c0a79fde8da2862ac173ebb02dc0e779a8dc443e
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Wed Jul 10 10:32:39 2019 +0800

    return copy to avoid potential ConcurrentModification
---
 .../test/java/org/apache/dubbo/samples/monitor/MonitorServiceImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dubbo-samples-monitor/src/test/java/org/apache/dubbo/samples/monitor/MonitorServiceImpl.java b/dubbo-samples-monitor/src/test/java/org/apache/dubbo/samples/monitor/MonitorServiceImpl.java
index 28ec0c6..aa05da3 100644
--- a/dubbo-samples-monitor/src/test/java/org/apache/dubbo/samples/monitor/MonitorServiceImpl.java
+++ b/dubbo-samples-monitor/src/test/java/org/apache/dubbo/samples/monitor/MonitorServiceImpl.java
@@ -33,6 +33,6 @@ public class MonitorServiceImpl implements MonitorService {
 
     @Override
     public List<URL> lookup(URL query) {
-        return collectedStatistics;
+        return new ArrayList<>(collectedStatistics);
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org