You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/02/11 10:10:07 UTC

[camel] branch master updated (75d377f -> f6f7119)

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

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 75d377f  CAMEL-14519 - Create an AWS-DDB component based on SDK v2, Regen docs
     new 2859fc7  camel-core optimize - Simple language cannot change start functions anymore so we can use plain ArrayList now.
     new f6f7119  camel-core optimize - No need to use copy on array list here

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/java/org/apache/camel/language/simple/SimpleTokenizer.java  | 5 ++---
 .../src/main/java/org/apache/camel/support/ChildServiceSupport.java  | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)


[camel] 02/02: camel-core optimize - No need to use copy on array list here

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f6f7119f4e959af4b83c7c0cd8f549316bd7d18f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 11 10:56:10 2020 +0100

    camel-core optimize - No need to use copy on array list here
---
 .../src/main/java/org/apache/camel/support/ChildServiceSupport.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/ChildServiceSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/ChildServiceSupport.java
index bf1a820..c3bbb30 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/ChildServiceSupport.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/ChildServiceSupport.java
@@ -16,8 +16,8 @@
  */
 package org.apache.camel.support;
 
+import java.util.ArrayList;
 import java.util.List;
-import java.util.concurrent.CopyOnWriteArrayList;
 
 import org.apache.camel.RuntimeCamelException;
 import org.apache.camel.Service;
@@ -127,7 +127,7 @@ public abstract class ChildServiceSupport extends ServiceSupport {
             if (childServices == null) {
                 synchronized (lock) {
                     if (childServices == null) {
-                        childServices = new CopyOnWriteArrayList<>();
+                        childServices = new ArrayList<>();
                     }
                 }
             }


[camel] 01/02: camel-core optimize - Simple language cannot change start functions anymore so we can use plain ArrayList now.

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2859fc7c1fcd8c275c984a3a69d5f186fc1b5e52
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 11 10:49:01 2020 +0100

    camel-core optimize - Simple language cannot change start functions anymore so we can use plain ArrayList now.
---
 .../main/java/org/apache/camel/language/simple/SimpleTokenizer.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/language/simple/SimpleTokenizer.java b/core/camel-base/src/main/java/org/apache/camel/language/simple/SimpleTokenizer.java
index ef7ffd7..0c55b95 100644
--- a/core/camel-base/src/main/java/org/apache/camel/language/simple/SimpleTokenizer.java
+++ b/core/camel-base/src/main/java/org/apache/camel/language/simple/SimpleTokenizer.java
@@ -16,8 +16,8 @@
  */
 package org.apache.camel.language.simple;
 
+import java.util.ArrayList;
 import java.util.List;
-import java.util.concurrent.CopyOnWriteArrayList;
 
 import org.apache.camel.language.simple.types.SimpleToken;
 import org.apache.camel.language.simple.types.SimpleTokenType;
@@ -29,8 +29,7 @@ import org.apache.camel.util.ObjectHelper;
  */
 public final class SimpleTokenizer {
 
-    // use CopyOnWriteArrayList so we can modify it in the for loop when changing function start/end tokens
-    private static final List<SimpleTokenType> KNOWN_TOKENS = new CopyOnWriteArrayList<>();
+    private static final List<SimpleTokenType> KNOWN_TOKENS = new ArrayList<>();
 
     // optimise to be able to quick check for start functions
     private static final String[] FUNCTION_START = new String[]{"${", "$simple{"};