Skip to content

Commit

Permalink
Map-fields now generate as a LinkedHashMap, to conserve key-order
Browse files Browse the repository at this point in the history
  • Loading branch information
BlvckBytes committed Oct 23, 2024
1 parent 62c0e84 commit 362e80b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private Object handleResolveMapField(Field f, Object value) throws Exception {
List<Class<?>> genericTypes = getGenericTypes(f);
assert genericTypes != null && genericTypes.size() == 2;

Map<Object, Object> result = new HashMap<>();
Map<Object, Object> result = new LinkedHashMap<>();

if (!(value instanceof Map)) {
logger.log(Level.FINEST, () -> DebugLogSource.MAPPER + "Not a map, returning empty map");
Expand Down

0 comments on commit 362e80b

Please sign in to comment.