sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sseif...@apache.org
Subject svn commit: r1773143 - /sling/trunk/contrib/extensions/contextaware-config/spi/src/main/java/org/apache/sling/caconfig/spi/metadata/ConfigurationMetadata.java
Date Wed, 07 Dec 2016 20:51:01 GMT
Author: sseifert
Date: Wed Dec  7 20:51:01 2016
New Revision: 1773143

URL: http://svn.apache.org/viewvc?rev=1773143&view=rev
Log:
SLING-6338 keep property order

Modified:
    sling/trunk/contrib/extensions/contextaware-config/spi/src/main/java/org/apache/sling/caconfig/spi/metadata/ConfigurationMetadata.java

Modified: sling/trunk/contrib/extensions/contextaware-config/spi/src/main/java/org/apache/sling/caconfig/spi/metadata/ConfigurationMetadata.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/contextaware-config/spi/src/main/java/org/apache/sling/caconfig/spi/metadata/ConfigurationMetadata.java?rev=1773143&r1=1773142&r2=1773143&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/contextaware-config/spi/src/main/java/org/apache/sling/caconfig/spi/metadata/ConfigurationMetadata.java
(original)
+++ sling/trunk/contrib/extensions/contextaware-config/spi/src/main/java/org/apache/sling/caconfig/spi/metadata/ConfigurationMetadata.java
Wed Dec  7 20:51:01 2016
@@ -19,7 +19,7 @@
 package org.apache.sling.caconfig.spi.metadata;
 
 import java.util.Collection;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;
 
 import javax.annotation.Nonnull;
@@ -47,7 +47,7 @@ public final class ConfigurationMetadata
     }
     
     private static Map<String,PropertyMetadata<?>> toMap(Collection<PropertyMetadata<?>>
propertyMetadata) {
-        Map<String,PropertyMetadata<?>> map = new HashMap<>();
+        Map<String,PropertyMetadata<?>> map = new LinkedHashMap<>();
         for (PropertyMetadata<?> item : propertyMetadata) {
             if (map.containsKey(item.getName())) {
                 throw new IllegalArgumentException("Duplicate property name: " + item.getName());



Mime
View raw message