Skip to content

Commit 558d69e

Browse files
committed
Clarify Javadoc for setAtPathRecursive, adding parameter descriptions and improved method details
Signed-off-by: Erik Pförtner <splatcrafter@splatgames.de>
1 parent 8603d0f commit 558d69e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • aether-datafixers-api/src/main/java/de/splatgames/aether/datafixers/api/rewrite

aether-datafixers-api/src/main/java/de/splatgames/aether/datafixers/api/rewrite/Rules.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,13 @@ private static String[] splitPath(@NotNull final String path) {
25522552
}
25532553

25542554
/**
2555-
* Recursively sets a value at a path, creating intermediate objects.
2555+
* Recursive helper for setAtPath that navigates the path segments and sets the value at the end.
2556+
*
2557+
* @param dynamic the current dynamic object, must not be {@code null}
2558+
* @param parts the path segments, must not be {@code null}
2559+
* @param index the current index in the path segments
2560+
* @param value the value to set at the target path, must not be {@code null}
2561+
* @return the updated dynamic with the value set at the target path
25562562
*/
25572563
@NotNull
25582564
private static Dynamic<Object> setAtPathRecursive(@NotNull final Dynamic<Object> dynamic,

0 commit comments

Comments
 (0)