Skip to content

Commit 74e910a

Browse files
author
Josh Deffibaugh
committed
Updates outdated docs
1 parent d7687c8 commit 74e910a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ private Optimizely(@Nonnull ProjectConfig projectConfig,
9696

9797
// Do work here that should be done once per Optimizely lifecycle
9898
@VisibleForTesting void initialize() {
99-
// Give users of ExperimentRegistry a chance to clean out old state for experiments
100-
// that are no longer in the data file.
10199
bucketer.cleanUserExperimentRecord();
102100
}
103101

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ public UserExperimentRecord getUserExperimentRecord() {
217217
return userExperimentRecord;
218218
}
219219

220+
/**
221+
* Gives implementations of {@link UserExperimentRecord} a chance to remove records
222+
* of experiments that are deleted or not running.
223+
*/
220224
public void cleanUserExperimentRecord() {
221225
if (userExperimentRecord != null) {
222226
Map<String,Map<String,String>> records = userExperimentRecord.records();

0 commit comments

Comments
 (0)