You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by jp...@apache.org on 2019/06/17 13:04:41 UTC

[camel] branch master updated: Fix properties loading on JDK 11

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 684378f  Fix properties loading on JDK 11
684378f is described below

commit 684378fcfd5a4e57a6290761bc7a5faaf43c9805
Author: jpoth <po...@gmail.com>
AuthorDate: Mon Jun 17 15:02:58 2019 +0200

    Fix properties loading on JDK 11
---
 .../src/main/java/org/apache/camel/util/OrderedProperties.java     | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/core/camel-util/src/main/java/org/apache/camel/util/OrderedProperties.java b/core/camel-util/src/main/java/org/apache/camel/util/OrderedProperties.java
index 861e147..5fd017a 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/OrderedProperties.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/OrderedProperties.java
@@ -46,6 +46,13 @@ public final class OrderedProperties extends Properties {
     }
 
     @Override
+    public synchronized void putAll(Map<?, ?> t) {
+        for (Map.Entry<?, ?> entry : t.entrySet()) {
+            put(entry.getKey(), entry.getValue());
+        }
+    }
+
+    @Override
     public synchronized Object get(Object key) {
         return map.get(key);
     }