rmannibucau commented on code in PR #47:
URL: https://github.com/apache/geronimo-xbean/pull/47#discussion_r2653866260


##########
xbean-reflect/src/main/java/org/apache/xbean/recipe/ObjectRecipe.java:
##########
@@ -270,7 +273,11 @@ protected Object internalCreate(Type expectedType, boolean 
lazyRefAllowed) throw
 
         //
         // clone the properties so they can be used again
-        Map<Property,Object> propertyValues = new 
LinkedHashMap<Property,Object>(properties);
+        Map<Property,Object> propertyValues = 
options.contains(Option.CASE_INSENSITIVE_PROPERTIES)
+                ? new TreeMap<>(Comparator.comparing(property -> 
property.name, String.CASE_INSENSITIVE_ORDER))

Review Comment:
   `new TreeMap<>(String.CASE_INSENSITIVE_ORDER)` should be sufficient



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to