Skip to content

Commit 4964852

Browse files
Remove deprecations for set and get forcedVariations.
1 parent 5cec109 commit 4964852

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

core-api/src/main/java/com/optimizely/ab/Optimizely.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,7 @@ public Variation getVariation(@Nonnull String experimentKey,
10821082
* @param variationKey The variation key to force the user into. If the variation key is null
10831083
* then the forcedVariation for that experiment is removed.
10841084
* @return boolean A boolean value that indicates if the set completed successfully.
1085-
*
1086-
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
10871085
*/
1088-
@Deprecated
10891086
public boolean setForcedVariation(@Nonnull String experimentKey,
10901087
@Nonnull String userId,
10911088
@Nullable String variationKey) {
@@ -1116,10 +1113,7 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
11161113
* @param userId The user ID to be used for bucketing.
11171114
* @return The variation the user was bucketed into. This value can be null if the
11181115
* forced variation fails.
1119-
*
1120-
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
11211116
*/
1122-
@Deprecated
11231117
@Nullable
11241118
public Variation getForcedVariation(@Nonnull String experimentKey,
11251119
@Nonnull String userId) {

core-api/src/main/java/com/optimizely/ab/bucketing/DecisionService.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,7 @@ public ConcurrentHashMap<String, ConcurrentHashMap<String, String>> getForcedVar
477477
* @param variationKey The variation key to force the user into. If the variation key is null
478478
* then the forcedVariation for that experiment is removed.
479479
* @return boolean A boolean value that indicates if the set completed successfully.
480-
*
481-
* @deprecated use {@link OptimizelyUserContext#setForcedDecision(String, String, String)} instead
482480
*/
483-
@Deprecated
484481
public boolean setForcedVariation(@Nonnull Experiment experiment,
485482
@Nonnull String userId,
486483
@Nullable String variationKey) {
@@ -547,10 +544,7 @@ public boolean setForcedVariation(@Nonnull Experiment experiment,
547544
* @param userId The user ID to be used for bucketing.
548545
* @return A {@link DecisionResponse} including the {@link Variation} that user is bucketed into (or null)
549546
* and the decision reasons. The variation can be null if the forced variation fails.
550-
*
551-
* @deprecated use {@link OptimizelyUserContext#getForcedDecision(String, String)} instead
552547
*/
553-
@Deprecated
554548
@Nonnull
555549
public DecisionResponse<Variation> getForcedVariation(@Nonnull Experiment experiment,
556550
@Nonnull String userId) {

0 commit comments

Comments
 (0)