Skip to content

Commit 2fd32f6

Browse files
refactor: Migrate Internal Constants class to kotlin (#510)
1 parent a86cd3b commit 2fd32f6

File tree

6 files changed

+737
-706
lines changed

6 files changed

+737
-706
lines changed

android-core/src/main/java/com/mparticle/identity/IdentityApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public MParticleUser getCurrentUser() {
9393
*/
9494
@Nullable
9595
public MParticleUser getUser(@NonNull Long mpid) {
96-
if (!Constants.TEMPORARY_MPID.equals(mpid) && mConfigManager.mpidExists(mpid)) {
96+
if (Constants.TEMPORARY_MPID != mpid && mConfigManager.mpidExists(mpid)) {
9797
return MParticleUserImpl.getInstance(mContext, mpid, mUserDelegate);
9898
} else {
9999
return null;
@@ -252,7 +252,7 @@ public BaseIdentityTask modify(@NonNull final IdentityApiRequest updateRequest)
252252
if (updateRequest.mpid == null) {
253253
updateRequest.mpid = mConfigManager.getMpid();
254254
}
255-
if (Constants.TEMPORARY_MPID.equals(updateRequest.mpid)) {
255+
if (Constants.TEMPORARY_MPID == updateRequest.mpid) {
256256
String message = "modify() requires a non-zero MPID, please make sure a MParticleUser is present before making a modify request.";
257257
if (devMode) {
258258
throw new IllegalArgumentException(message);

android-core/src/main/java/com/mparticle/internal/BatchId.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)