File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,17 @@ One important note is that the Split Provider **requires a targeting key** to be
4343``` java
4444Client client = api. getClient(" CLIENT_NAME" );
4545
46- EvaluationContext context = new EvaluationContext (" TARGETING_KEY" );
46+ EvaluationContext context = new MutableContext (" TARGETING_KEY" );
4747Boolean boolValue = client. getBooleanValue(" boolFlag" , false , context);
4848```
4949If 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" );
5252client. setEvaluationContext(context)
5353```
5454or at the OpenFeatureAPI level
5555``` java
56- EvaluationContext context = new EvaluationContext (" TARGETING_KEY" );
56+ EvaluationContext context = new MutableContext (" TARGETING_KEY" );
5757OpenFeatureAPI . getInstance(). setCtx(context)
5858````
5959If the context was set at the client or api level, it is not required to provide it during flag evaluation.
You can’t perform that action at this time.
0 commit comments