Skip to content

Commit 11b51a6

Browse files
updated readme for v1.1.0
1 parent 3165898 commit 11b51a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ This SDK is compatible with Java 11 and higher.
1111
Below is a simple example that describes the instantiation of the Split Provider. Please see the [OpenFeature Documentation](https://docs.openfeature.dev/docs/reference/concepts/evaluation-api) for details on how to use the OpenFeature SDK.
1212

1313
```java
14-
import dev.openfeature.javasdk.OpenFeatureAPI;
15-
import io.split.openfeature.SplitProvider
14+
import dev.openfeature.sdk.OpenFeatureAPI;
15+
import io.split.openfeature.SplitProvider;
1616

1717
OpenFeatureAPI api = OpenFeatureAPI.getInstance();
1818
api.setProvider(new SplitProvider("YOUR_API_KEY"));
1919
```
2020

2121
If you are more familiar with Split or want access to other initialization options, you can provide a `SplitClient` to the constructor. See the [Split Java SDK Documentation](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK) for more information.
2222
```java
23-
import dev.openfeature.javasdk.OpenFeatureAPI;
24-
import io.split.openfeature.SplitProvider
23+
import dev.openfeature.sdk.OpenFeatureAPI;
24+
import io.split.openfeature.SplitProvider;
2525
import io.split.client.SplitClient;
2626
import io.split.client.SplitClientConfig;
2727
import io.split.client.SplitFactoryBuilder;
@@ -54,7 +54,7 @@ client.setEvaluationContext(context)
5454
or at the OpenFeatureAPI level
5555
```java
5656
EvaluationContext context = new MutableContext("TARGETING_KEY");
57-
OpenFeatureAPI.getInstance().setCtx(context)
57+
OpenFeatureAPI.getInstance().setEvaluationContext(context)
5858
````
5959
If the context was set at the client or api level, it is not required to provide it during flag evaluation.
6060

0 commit comments

Comments
 (0)