Skip to content

Commit c06c679

Browse files
committed
Build successfully runned:spotless plugin
Signed-off-by: mdxabu <[email protected]>
1 parent 549e97c commit c06c679

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import java.util.Collections;
44
import java.util.HashMap;
55
import java.util.Map;
6-
import java.util.concurrent.ConcurrentHashMap;
7-
import java.util.concurrent.ConcurrentMap;
86

97
/**
108
* Hook data provides a way for hooks to maintain state across their execution stages.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ private EvaluationContext callBeforeHooks(
101101
if (hook.supportsFlagValueType(flagValueType)) {
102102
// Create a new context with this hook's data
103103
HookContext contextWithHookData = hookCtx.withHookData(hookDataMap.get(hook));
104-
Optional<EvaluationContext> optional =
105-
Optional.ofNullable(hook.before(contextWithHookData, hints)).orElse(Optional.empty());
104+
Optional<EvaluationContext> optional = Optional.ofNullable(hook.before(contextWithHookData, hints))
105+
.orElse(Optional.empty());
106106
if (optional.isPresent()) {
107107
context = context.merge(optional.get());
108108
}

src/test/java/dev/openfeature/sdk/HookDataTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,3 @@ void shouldSupportNullValues() {
109109
assertNull(hookData.get("nullKey", String.class));
110110
}
111111
}
112-

src/test/java/dev/openfeature/sdk/HookSupportTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public void error(HookContext<String> ctx, Exception error, Map<String, Object>
136136
}
137137

138138
@Override
139-
public void finallyAfter(HookContext<String> ctx, FlagEvaluationDetails<String> details, Map<String, Object> hints) {
139+
public void finallyAfter(
140+
HookContext<String> ctx, FlagEvaluationDetails<String> details, Map<String, Object> hints) {
140141
finallyCalled = true;
141142
}
142143
}

0 commit comments

Comments
 (0)