spring-framework / org.springframework.beans / PropertyAccessorUtils / getLastNestedPropertySeparatorIndex

getLastNestedPropertySeparatorIndex

open static fun getLastNestedPropertySeparatorIndex(propertyPath: String): Int

Determine the first nested property separator in the given property path, ignoring dots in keys (like "map[my.key]").

Parameters

propertyPath - the property path to check

Return
the index of the nested property separator, or -1 if none