Skip to content

Commit 30b5dd7

Browse files
authored
make utils methods public (#104)
1 parent 192cb88 commit 30b5dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class UserProfileUtils {
3333
* @return True if the map can be converted into a {@link UserProfile}.
3434
* False if the map cannot be converted.
3535
*/
36-
static boolean isValidUserProfileMap(@Nonnull Map<String, Object> map) {
36+
public static boolean isValidUserProfileMap(@Nonnull Map<String, Object> map) {
3737
// The Map must contain a value for the user ID
3838
if (!map.containsKey(UserProfileService.userIdKey)) {
3939
return false;
@@ -71,7 +71,7 @@ static boolean isValidUserProfileMap(@Nonnull Map<String, Object> map) {
7171
* @param map The map to construct the {@link UserProfile} from.
7272
* @return A {@link UserProfile} instance.
7373
*/
74-
static UserProfile convertMapToUserProfile(@Nonnull Map<String, Object> map) {
74+
public static UserProfile convertMapToUserProfile(@Nonnull Map<String, Object> map) {
7575
String userId = (String) map.get(UserProfileService.userIdKey);
7676
Map<String, Map<String, String>> experimentBucketMap = (Map<String, Map<String, String>>) map.get(UserProfileService.experimentBucketMapKey);
7777
Map<String, Decision> decisions = new HashMap<String, Decision>(experimentBucketMap.size());

0 commit comments

Comments
 (0)