File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/java/io/sentry/protocol
test/java/io/sentry/protocol Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public void setIpAddress(final @Nullable String ipAddress) {
150150 /**
151151 * Gets other user related data.
152152 *
153- * @deprecated use getData instead
153+ * @deprecated use {{@link User# getData()}} instead
154154 * @return the other user data.
155155 */
156156 @ Deprecated
@@ -162,7 +162,7 @@ public void setIpAddress(final @Nullable String ipAddress) {
162162 /**
163163 * Sets other user related data.
164164 *
165- * @deprecated use setData instead
165+ * @deprecated use {{@link User# setData(Map)}} instead
166166 * @param other the other user related data..
167167 */
168168 @ Deprecated
@@ -276,6 +276,7 @@ public static final class Deserializer implements JsonDeserializer<User> {
276276 (Map <String , String >) reader .nextObjectOrNull ());
277277 break ;
278278 case JsonKeys .OTHER :
279+ // restore `other` from legacy JSON
279280 if (user .data == null || user .data .isEmpty ()) {
280281 user .data =
281282 CollectionUtils .newConcurrentHashMap (
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class UserSerializationTest {
4444 }
4545
4646 @Test
47- fun deserializeLegacy () {
47+ fun `deserialize legacy` () {
4848 val inputJson = sanitizedFile(" json/user_legacy.json" )
4949 val expectedJson = sanitizedFile(" json/user.json" )
5050 val actual = deserialize(inputJson)
You can’t perform that action at this time.
0 commit comments