diff --git a/src/main/java/me/blvckbytes/bbconfigmapper/ConfigMapper.java b/src/main/java/me/blvckbytes/bbconfigmapper/ConfigMapper.java index 12c42d6..c118e61 100644 --- a/src/main/java/me/blvckbytes/bbconfigmapper/ConfigMapper.java +++ b/src/main/java/me/blvckbytes/bbconfigmapper/ConfigMapper.java @@ -356,7 +356,7 @@ private Object handleResolveMapField(Field f, Object value) throws Exception { List> genericTypes = getGenericTypes(f); assert genericTypes != null && genericTypes.size() == 2; - Map result = new HashMap<>(); + Map result = new LinkedHashMap<>(); if (!(value instanceof Map)) { logger.log(Level.FINEST, () -> DebugLogSource.MAPPER + "Not a map, returning empty map");