aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject [3/4] aries-jax-rs-whiteboard git commit: Use thread safe implementation
Date Mon, 28 Aug 2017 18:46:01 GMT
Use thread safe implementation


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/ac30c891
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/ac30c891
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/ac30c891

Branch: refs/heads/master
Commit: ac30c891d981af77d69982f66a4b3eb663d04874
Parents: 85a2b34
Author: Carlos Sierra <csierra@apache.org>
Authored: Mon Aug 28 20:40:09 2017 +0200
Committer: Carlos Sierra <csierra@apache.org>
Committed: Mon Aug 28 20:40:09 2017 +0200

----------------------------------------------------------------------
 .../org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/ac30c891/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
----------------------------------------------------------------------
diff --git a/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
b/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
index 78e5a06..4b3ed9b 100644
--- a/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
+++ b/jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/Whiteboard.java
@@ -273,7 +273,7 @@ public class Whiteboard {
     private static OSGi<Collection<String>> bestEffortCalculationOfEnpoints(
         Filter filter) {
 
-        Collection<String> endPoints = new ArrayList<>();
+        Collection<String> endPoints = new CopyOnWriteArrayList<>();
 
         return
             serviceReferences(HttpServiceRuntime.class, filter.toString()).


Mime
View raw message