Skip to content

Commit 4f6554d

Browse files
committed
fixup: added comment
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 940651a commit 4f6554d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/dev/openfeature/sdk/HookSupport.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ class HookSupport {
1616
/**
1717
* Sets the {@link Hook}-{@link HookContext}-{@link Pair} list in the given data object with {@link HookContext}
1818
* set to null. Filters hooks by supported {@link FlagValueType}.
19-
* Sources are iterated in order: provider → options → client → API.
19+
* Sources are iterated in order: provider, options, client, API (reversed for the {@code before} stage by
20+
* {@link #executeBeforeHooks}).
21+
*
22+
* <p>The four hook sources are accepted as separate collections to avoid allocation on the evaluation hot path.
2023
*
2124
* @param hookSupportData the data object to modify
2225
* @param providerHooks provider-level hooks

0 commit comments

Comments
 (0)