diff --git a/core-api/src/main/java/com/optimizely/ab/bucketing/UserProfileUtils.java b/core-api/src/main/java/com/optimizely/ab/bucketing/UserProfileUtils.java index 24d21f3eb..afc54dee5 100644 --- a/core-api/src/main/java/com/optimizely/ab/bucketing/UserProfileUtils.java +++ b/core-api/src/main/java/com/optimizely/ab/bucketing/UserProfileUtils.java @@ -33,7 +33,7 @@ public class UserProfileUtils { * @return True if the map can be converted into a {@link UserProfile}. * False if the map cannot be converted. */ - static boolean isValidUserProfileMap(@Nonnull Map map) { + public static boolean isValidUserProfileMap(@Nonnull Map map) { // The Map must contain a value for the user ID if (!map.containsKey(UserProfileService.userIdKey)) { return false; @@ -71,7 +71,7 @@ static boolean isValidUserProfileMap(@Nonnull Map map) { * @param map The map to construct the {@link UserProfile} from. * @return A {@link UserProfile} instance. */ - static UserProfile convertMapToUserProfile(@Nonnull Map map) { + public static UserProfile convertMapToUserProfile(@Nonnull Map map) { String userId = (String) map.get(UserProfileService.userIdKey); Map> experimentBucketMap = (Map>) map.get(UserProfileService.experimentBucketMapKey); Map decisions = new HashMap(experimentBucketMap.size());