Build successfully runned:spotless plugin
Signed-off-by: mdxabu <abdullahfakrudeen2020@gmail.com>
This commit is contained in:
parent
549e97cd9f
commit
c06c679967
|
|
@ -3,8 +3,6 @@ package dev.openfeature.sdk;
|
|||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
/**
|
||||
* Hook data provides a way for hooks to maintain state across their execution stages.
|
||||
|
|
|
|||
|
|
@ -101,8 +101,8 @@ class HookSupport {
|
|||
if (hook.supportsFlagValueType(flagValueType)) {
|
||||
// Create a new context with this hook's data
|
||||
HookContext contextWithHookData = hookCtx.withHookData(hookDataMap.get(hook));
|
||||
Optional<EvaluationContext> optional =
|
||||
Optional.ofNullable(hook.before(contextWithHookData, hints)).orElse(Optional.empty());
|
||||
Optional<EvaluationContext> optional = Optional.ofNullable(hook.before(contextWithHookData, hints))
|
||||
.orElse(Optional.empty());
|
||||
if (optional.isPresent()) {
|
||||
context = context.merge(optional.get());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,4 +109,3 @@ class HookDataTest {
|
|||
assertNull(hookData.get("nullKey", String.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@ class HookSupportTest implements HookFixtures {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void finallyAfter(HookContext<String> ctx, FlagEvaluationDetails<String> details, Map<String, Object> hints) {
|
||||
public void finallyAfter(
|
||||
HookContext<String> ctx, FlagEvaluationDetails<String> details, Map<String, Object> hints) {
|
||||
finallyCalled = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue