Skip to content

Commit

Permalink
refactor: Migrate Internal Constants class to kotlin (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle authored Oct 3, 2024
1 parent a86cd3b commit 2fd32f6
Show file tree
Hide file tree
Showing 6 changed files with 737 additions and 706 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public MParticleUser getCurrentUser() {
*/
@Nullable
public MParticleUser getUser(@NonNull Long mpid) {
if (!Constants.TEMPORARY_MPID.equals(mpid) && mConfigManager.mpidExists(mpid)) {
if (Constants.TEMPORARY_MPID != mpid && mConfigManager.mpidExists(mpid)) {
return MParticleUserImpl.getInstance(mContext, mpid, mUserDelegate);
} else {
return null;
Expand Down Expand Up @@ -252,7 +252,7 @@ public BaseIdentityTask modify(@NonNull final IdentityApiRequest updateRequest)
if (updateRequest.mpid == null) {
updateRequest.mpid = mConfigManager.getMpid();
}
if (Constants.TEMPORARY_MPID.equals(updateRequest.mpid)) {
if (Constants.TEMPORARY_MPID == updateRequest.mpid) {
String message = "modify() requires a non-zero MPID, please make sure a MParticleUser is present before making a modify request.";
if (devMode) {
throw new IllegalArgumentException(message);
Expand Down
67 changes: 0 additions & 67 deletions android-core/src/main/java/com/mparticle/internal/BatchId.java

This file was deleted.

Loading

0 comments on commit 2fd32f6

Please sign in to comment.