Skip to content

Commit 65aeafa

Browse files
committed
chore: suppress sonar S2789 on defensive null-check
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 28d902c commit 65aeafa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public void setHookContexts(
4848
}
4949
}
5050

51+
// S2789: Hook is user-implemented; defensive null check against non-conforming impls returning null.
52+
@SuppressWarnings("java:S2789")
5153
public void executeBeforeHooks(HookSupportData data) {
5254
// These traverse backwards from normal.
5355
List<Pair<Hook, HookContext>> hooks = data.getHooks();

0 commit comments

Comments
 (0)