Skip to content

Commit 2494890

Browse files
committed
Update PropertiesUtils.java
1 parent 6ccbf0b commit 2494890

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

microsphere-java-core/src/main/java/io/microsphere/collection/PropertiesUtils.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ public static Map<String, Object> flatProperties(Map<String, Object> properties)
4949
return unmodifiableMap(flattenProperties);
5050
}
5151

52-
static void flatProperties(Map<String, Object> properties, String propertyNamePrefix,
52+
/**
53+
* Recursively flattens the given properties map into a single-level map.
54+
*
55+
* @param properties The map containing properties to be flattened.
56+
* @param propertyNamePrefix The prefix for property names used during flattening.
57+
* @param flattenProperties The target map where flattened properties are stored.
58+
*/
59+
protected static void flatProperties(Map<String, Object> properties, String propertyNamePrefix,
5360
Map<String, Object> flattenProperties) {
5461
for (Map.Entry<String, Object> entry : properties.entrySet()) {
5562
String propertyName = normalizePropertyName(propertyNamePrefix, entry.getKey());

0 commit comments

Comments
 (0)