Skip to content

Commit d7f7092

Browse files
committed
readme updates
1 parent 1d3c5f0 commit d7f7092

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ context.put("userId", "123");
215215
context.put("country", "nl");
216216

217217
boolean isEnabled = f.isEnabled("my_feature", context);
218-
Object variation = f.getVariation("my_feature", context);
218+
String variation = f.getVariation("my_feature", context);
219219
String variableValue = f.getVariableString("my_feature", "my_variable", context);
220220
```
221221

@@ -253,7 +253,7 @@ If your feature has any [variations](https://featurevisor.com/docs/features/#var
253253
```java
254254
String featureKey = "my_feature";
255255

256-
Object variation = f.getVariation(featureKey);
256+
String variation = f.getVariation(featureKey);
257257

258258
if ("treatment".equals(variation)) {
259259
// do something for treatment variation
@@ -265,7 +265,7 @@ if ("treatment".equals(variation)) {
265265
Additional context per evaluation can also be passed:
266266

267267
```java
268-
Object variation = f.getVariation(featureKey, additionalContext);
268+
String variation = f.getVariation(featureKey, additionalContext);
269269
```
270270

271271
## Getting variables
@@ -669,7 +669,7 @@ Now you can pass the child instance where your individual request is being handl
669669

670670
```java
671671
boolean isEnabled = childF.isEnabled("my_feature");
672-
Object variation = childF.getVariation("my_feature");
672+
String variation = childF.getVariation("my_feature");
673673
String variableValue = childF.getVariableString("my_feature", "my_variable");
674674
```
675675

0 commit comments

Comments
 (0)