Skip to content

Commit 0e0c2f6

Browse files
fix readme
1 parent 7a8043e commit 0e0c2f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ One important note is that the Split Provider **requires a targeting key** to be
4343
```java
4444
Client client = api.getClient("CLIENT_NAME");
4545

46-
EvaluationContext context = new EvaluationContext("TARGETING_KEY");
46+
EvaluationContext context = new MutableContext("TARGETING_KEY");
4747
Boolean boolValue = client.getBooleanValue("boolFlag", false, context);
4848
```
4949
If the same targeting key is used repeatedly, the evaluation context may be set at the client level
5050
```java
51-
EvaluationContext context = new EvaluationContext("TARGETING_KEY");
51+
EvaluationContext context = new MutableContext("TARGETING_KEY");
5252
client.setEvaluationContext(context)
5353
```
5454
or at the OpenFeatureAPI level
5555
```java
56-
EvaluationContext context = new EvaluationContext("TARGETING_KEY");
56+
EvaluationContext context = new MutableContext("TARGETING_KEY");
5757
OpenFeatureAPI.getInstance().setCtx(context)
5858
````
5959
If the context was set at the client or api level, it is not required to provide it during flag evaluation.

0 commit comments

Comments
 (0)