Skip to content

Commit db58786

Browse files
Add note on our default implementation of valueForKeyPath()
1 parent eb66eeb commit db58786

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ng-core/src/main/java/ng/kvc/NGKeyValueCodingAdditions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ public static void takeValueForKeyPath( final Object object, final Object value,
3434
}
3535
}
3636

37+
/**
38+
* FIXME:
39+
* Our implementations of both of the interface's methods should probably use recursive invocations instead of splitting up the path on the period and invoking valueForKey on each element.
40+
* This way, our invocation of "valueForKeyPath()" would propagate down the entire path (instead of suddenly changing to valueForKey() for each object)
41+
* // Hugi 2025-06-02
42+
*/
3743
public static class DefaultImplementation {
3844

3945
public static Object valueForKeyPath( final Object object, final String keyPath ) {

0 commit comments

Comments
 (0)