public class AnalyticsUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NULL_UUID |
static Map<String,String> |
SUPPORTED_REPOSITORIES_KEYS_TO_TYPE |
Constructor and Description |
---|
AnalyticsUtils() |
Modifier and Type | Method and Description |
---|---|
static @NotNull String |
anonymizeFreeText(@Nullable String value)
Creates UUID from given string.
|
static @Nullable Object |
mapToBooleanIfApplicable(@Nullable String value)
Maps a plain string value to a corresponding Boolean so plugin analytics won't filter it out, e.g.
|
public static final String NULL_UUID
@Nullable @Contract(value="null -> null; !null -> !null") public static @Nullable Object mapToBooleanIfApplicable(@Nullable @Nullable String value)
Boolean.TRUE
.@NotNull @Contract(value="null -> !null") public static @NotNull String anonymizeFreeText(@Nullable @Nullable String value)
value
- if null NULL_UUID
is returned.Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.