You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:56:19 UTC
[sling-org-apache-sling-nosql-generic] 16/23: SLING-4881 NoSQL
Generic Resource Provider: Preserve order of changed resources (patch
contributed by Levente Santha)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.nosql.generic-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-nosql-generic.git
commit 0e42677e30d4c74e97995d97245bd4af8525164a
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue Jul 14 15:35:35 2015 +0000
SLING-4881 NoSQL Generic Resource Provider: Preserve order of changed resources (patch contributed by Levente Santha)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/nosql/generic@1690990 13f79535-47bb-0310-9956-ffa450edef68
---
.../sling/nosql/generic/resource/impl/NoSqlResourceProvider.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/nosql/generic/resource/impl/NoSqlResourceProvider.java b/src/main/java/org/apache/sling/nosql/generic/resource/impl/NoSqlResourceProvider.java
index 056c03e..2649323 100644
--- a/src/main/java/org/apache/sling/nosql/generic/resource/impl/NoSqlResourceProvider.java
+++ b/src/main/java/org/apache/sling/nosql/generic/resource/impl/NoSqlResourceProvider.java
@@ -24,6 +24,7 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
+import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
@@ -56,7 +57,7 @@ public class NoSqlResourceProvider implements ResourceProvider, ModifyingResourc
private final NoSqlAdapter adapter;
private final EventAdmin eventAdmin;
- private final Map<String, NoSqlData> changedResources = new HashMap<String, NoSqlData>();
+ private final Map<String, NoSqlData> changedResources = new LinkedHashMap<String, NoSqlData>();
private final Set<String> deletedResources = new HashSet<String>();
public NoSqlResourceProvider(NoSqlAdapter adapter, EventAdmin eventAdmin) {
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.