Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a9b44e3 authored by Walter Jang's avatar Walter Jang
Browse files

Use MoreObjects.toStringHelper instead of Objects (1/2)

To match clean up in google3 cl/137533342

Test: unit tests

Change-Id: I4f771ea0d699c5a4aaf95afab26c35fd12d73a05
parent e3af4c5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 */
package com.android.contacts.common.logging;

import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;

/**
 * Describes how user view and use a list
@@ -83,7 +83,7 @@ public final class ListEvent {

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
        return MoreObjects.toStringHelper(this)
                .add("actionType", actionType)
                .add("listType", listType)
                .add("count", count)
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 */
package com.android.contacts.common.logging;

import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;

/**
 * Describes how user views and takes action in Quick contact
@@ -78,7 +78,7 @@ public final class QuickContactEvent {

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
        return MoreObjects.toStringHelper(this)
                .add("referrer", referrer)
                .add("contactType", contactType)
                .add("cardType", cardType)
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ package com.android.contacts.common.logging;
import android.os.Parcel;
import android.os.Parcelable;

import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;

/**
 * Describes the results of a user search for a particular contact.
@@ -70,7 +70,7 @@ public final class SearchState implements Parcelable {

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
        return MoreObjects.toStringHelper(this)
                .add("queryLength", queryLength)
                .add("numPartitions", numPartitions)
                .add("numResults", numResults)
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ import com.android.contacts.GroupMetaDataLoader;
import com.android.contacts.common.model.AccountTypeManager;
import com.android.contacts.common.model.account.AccountType;

import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;

/** Meta data for a contact group. */
public final class GroupMetaData implements Parcelable {
@@ -127,7 +127,7 @@ public final class GroupMetaData implements Parcelable {

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
        return MoreObjects.toStringHelper(this)
                .add("accountName", accountName)
                .add("accountType", accountType)
                .add("dataSet", dataSet)