You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2018/06/07 14:04:01 UTC
[camel] branch master updated: camel-servicenow: replace Stack with
Deque
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli 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 c719b71 camel-servicenow: replace Stack with Deque
c719b71 is described below
commit c719b71d42980c9a54cfdef1b9222b979364d657
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Thu Jun 7 16:03:14 2018 +0200
camel-servicenow: replace Stack with Deque
---
.../camel/component/servicenow/ServiceNowMetaDataExtension.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/ServiceNowMetaDataExtension.java b/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/ServiceNowMetaDataExtension.java
index 50ef892..1160f26 100644
--- a/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/ServiceNowMetaDataExtension.java
+++ b/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/ServiceNowMetaDataExtension.java
@@ -16,14 +16,15 @@
*/
package org.apache.camel.component.servicenow;
+import java.util.ArrayDeque;
import java.util.ArrayList;
+import java.util.Deque;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
-import java.util.Stack;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Consumer;
@@ -468,12 +469,12 @@ final class ServiceNowMetaDataExtension extends AbstractMetaDataExtension {
private final String instanceName;
private final String objectName;
private final String objectType;
- private final Stack<String> stack;
+ private final Deque<String> stack;
MetaContext(Map<String, Object> parameters) {
this.parameters = parameters;
this.configuration = getComponent(ServiceNowComponent.class).getConfiguration().copy();
- this.stack = new Stack<>();
+ this.stack = new ArrayDeque<>();
try {
IntrospectionSupport.setProperties(configuration, new HashMap<>(parameters));
@@ -522,7 +523,7 @@ final class ServiceNowMetaDataExtension extends AbstractMetaDataExtension {
return objectName;
}
- public Stack<String> getStack() {
+ public Deque<String> getStack() {
return stack;
}
}
--
To stop receiving notification emails like this one, please contact
lburgazzoli@apache.org.