/** * @return {@code true} if this user was created with {@link #getCurrentUser()} when no current * user previously existed and {@link #enableAutomaticUser()} is set, false if was created by any * other means or if a previously "lazy" user was saved remotely. */ /* package */ boolean isLazy() { synchronized (mutex) { return getObjectId() == null && ParseAnonymousUtils.isLinked(this); } }
private void stripAnonymity() { synchronized (mutex) { if (ParseAnonymousUtils.isLinked(this)) { if (getObjectId() != null) { putAuthData(ParseAnonymousUtils.AUTH_TYPE, null); } else { removeAuthData(ParseAnonymousUtils.AUTH_TYPE); } } } }
if (user != null) { synchronized (user.mutex) { if (ParseAnonymousUtils.isLinked(user)) { if (user.isLazy()) { final Map<String, String> oldAnonymousData =
if (user != null && ParseAnonymousUtils.isLinked(user)) {